Ubuntu 18.04.4配置Nginx时遇到启动失败问题

问题

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


解决

  • 问题定位:
    https://www.cnblogs.com/hhyf/p/11518919.html

由于之前通过snap配置了nextcloud,故现在用lnmp配置nginx的时候遇到80端口被占用,此时解决方法可以杀掉端口占用,让其中一个应用改变端口。

  • nginx的配置相关参数学习:
    https://www.cnblogs.com/xjx199403/p/10705811.html

命令学习

  1. 查看错误日志
    systemctl status nginx.service 
    
  2. 查看80端口的占用情况
    netstat -apn|grep :80
    

你可能感兴趣的:(Nginx,Blog搭建,Linux)