问题
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