ubuntu nginx重启失败

Restarting nginx (via systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details

如果报生面的错误,是由于Apache占用了80端口

查看端口占用情况:sudo netstat -nlp

ubuntu nginx重启失败_第1张图片

关闭端口:sudo /etc/init.d/apache2 stop

ubuntu nginx重启失败_第2张图片

https://blog.csdn.net/yueruitao/article/details/87693592

然后重启:sudo service nginx restart

你可能感兴趣的:(ngnix,Apache)