VPS侦探论坛

标题: CentOS 7 Nginx 启动报错要怎么解决? [打印本页]

作者: janestone    时间: 2019-7-3 17:59
标题: CentOS 7 Nginx 启动报错要怎么解决?
CentOS7, lnmp1.6, Nginx重启时报错要怎么办?

# systemctl restart nginx
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
● nginx.service - LSB: starts the nginx web server
   Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2019-07-03 17:43:48 CST; 2min 53s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 24371 ExecStop=/etc/rc.d/init.d/nginx stop (code=exited, status=0/SUCCESS)
  Process: 24378 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)

Jul 03 17:43:48 systemd[1]: Stopped LSB: starts the nginx web server.
Jul 03 17:43:48 nginx[24378]: Starting nginx... nginx (pid 24163) already running.
Jul 03 17:43:48 systemd[1]: Starting LSB: starts the nginx web server...
Jul 03 17:43:48 systemd[1]: nginx.service: control process exited, code=exited status=1
Jul 03 17:43:48 systemd[1]: Failed to start LSB: starts the nginx web server.
Jul 03 17:43:48 systemd[1]: Unit nginx.service entered failed state.
Jul 03 17:43:48 systemd[1]: nginx.service failed.





作者: janestone    时间: 2019-7-4 08:22
军哥,这个是什么问题呢?
作者: licess    时间: 2019-7-4 08:58
nginx的没原生的systemd的service
直接 /etc/init.d/nginx restart 有错误的话也会直接看到




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4