Nginx启动出现Restarting nginx (via systemctl): Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.问题
1、查看防火墙启动的端口号
[root@iZuf68mr29sh8zy1elsaixZ ~]# firewall-cmd --list-ports
80/tcp 3306/tcp
2、重启防火墙
[root@iZuf68mr29sh8zy1elsaixZ ~]# firewall-cmd --reload
success
3、重启nginx,出现如下错误
[root@iZuf68mr29sh8zy1elsaixZ ~]# service nginx restart
Restarting nginx (via systemctl): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
这种错误一般都是目录不存在或者权限不足,所以直接执行下面两条命令即可,结果发现根本行不通。文章来源地址https://www.toymoban.com/news/detail-477039.html
[root@iZuf68mr29sh8zy1elsaixZ ~]# cd /var/tmp/
[root@iZuf68mr29sh8zy1elsaixZ ~]# mkdir -p /var/tmp/Nginx/{client,proxy,fastcgi,uwsgi,scgi}
4、查看nginx服务
文章来源:https://www.toymoban.com/news/detail-477039.html
到了这里,关于Nginx启动出现Job for nginx.service failed because the control process exited with error code.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!