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
    
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章