当前位置: 代码迷 >> 综合 >> Job for nginx.service failed because the control process exited with error code. See “systemctl stat
  详细解决方案

Job for nginx.service failed because the control process exited with error code. See “systemctl stat

热度:20   发布时间:2024-02-09 05:21:28.0

今天在安装完成LNMP环境之后,配置了nginx配置文件,需要重新启动nginx, systemctl start nginx.service,但是报了如下错误:Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. 于是systemctl status nginx.service 查看具体错误显示: Starting nginx: nginx: [emerg] open() “/home/logs/nginx/error.log” failed (2: No such file or directory)
于是到/etc/sysconfig/selinux 中修改 “SELINUX=disabled” 然后保存,重新启动nginx生效。

  相关解决方案