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

重启nginx

systemctl restart nginx

报错如下

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

查看端口80

netstat -lnp|grep 80
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      20805/vsftpd        
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      12106/java          
tcp6       0      0 :::80                   :::*                    LISTEN      13745/httpd         
tcp6     101      0 :::8080                 :::*                    LISTEN      12978/java          
udp6       0      0 fe80::5054:ff:fe9c::123 :::*                                631/ntpd           

杀掉占用进程

kill -9 13745

再次重启nginx

systemctl restart nginx
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。