今天遇到一个nginx报错的问题
用这条命令service nginx 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.这是nginx的80端口被占用导致,在nginx启动或者关闭过多的情况下出现
简单的解决办法直接结束掉进程,再重启即可
killall -9 nginx
service nginx restart









