51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

解决方案:See “systemctl status nginx.service” and “journalctl -xe” for details.

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

出现这个错误,我们直接运行 : ournalctl -xe

然后 会看到错误

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

一般原因是nginx端口被占用了

解决方法一

ps -ef |grep nginx

发现并没有端口占用

找了很久才知道,自己的配置文件中,有一个 域名绑定了 80,所以只能更改监听的端口

赞(1)
未经允许不得转载:工具盒子 » 解决方案:See “systemctl status nginx.service” and “journalctl -xe” for details.