Job for nginx.service failed because the control process exited with error code. See “systemctl stat


启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control process exited with error code. See “systemctl stat 可能原因如下:

1.nginx配置文件有错误
运行下面命令查看修改

nginx -t
1
2.已经启动nginx或者配置文件中的端口号被占用
检查端口是否被占用
netstat -tnlp
1
如果端口已经被占用,自己权衡一下是换个端口还是把占用端口的进程杀掉

检查nginx是否已经启动
ps -aux | grep nginx
1
如果已经启动使用下面命令干掉即可

pkill -9 nginx
1

---------------------
原文:https://blog.csdn.net/weixin_44486991/article/details/88246972


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details. Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. mysql—Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.问题 【问题管理】 -- RabbitMQ启动时报错:Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbl -xe" for details. Docker服务启动报错:Job for docker.service failed because the control process exited with error code. Jenkins 安装启动提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.” 045.PGSQL-启动数据库报错Job for postgresql-13.service failed because the control process exited with error code. See "systemctl status postgresql-13.service" and "journalctl -xe" for details. [linux]DHCP服务器启动报错Job for dhcpd.service failed because the control process exited with error code. See “systemctl status dhcpd.service” and “journalctl -xe” for details.
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM