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
关闭端口:sudo /etc/init.d/apache2 stop
https://blog.youkuaiyun.com/yueruitao/article/details/87693592
然后重启:sudo service nginx restart