您的位置:首页 > 运维架构 > Nginx

ELK学习遇到的问题4--Job for nginx.service failed because the control process exited with error code....

2020-07-20 08:38 603 查看

遇到的问题:

[root@m01 modules.d]# systemctl start nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
原因是开启的端口和docker容器里的端口重复了

解决方法:

[root@m01 modules.d]# systemctl stop docker
[root@m01 modules.d]# systemctl disable docker
[root@m01 modules.d]# iptables -F
[root@m01 modules.d]# iptables -X
[root@m01 modules.d]# iptables -Z
[root@m01 modules.d]# iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@m01 modules.d]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@m01 modules.d]# systemctl start nginx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐