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.


解决

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


命令学习

  1. 查看错误日志
    systemctl status nginx.service 
    
  2. 查看80端口的占用情况
    netstat -apn|grep :80
    
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章