問題
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端口被佔用,此時解決方法可以殺掉端口占用,讓其中一個應用改變端口。
- nginx的配置相關參數學習:
https://www.cnblogs.com/xjx199403/p/10705811.html
命令學習
- 查看錯誤日誌
systemctl status nginx.service
- 查看80端口的佔用情況
netstat -apn|grep :80