janestone 发表于 2019-7-3 17:59:30

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: Stopped LSB: starts the nginx web server.
Jul 03 17:43:48 nginx: Starting nginx... nginx (pid 24163) already running.
Jul 03 17:43:48 systemd: Starting LSB: starts the nginx web server...
Jul 03 17:43:48 systemd: nginx.service: control process exited, code=exited status=1
Jul 03 17:43:48 systemd: Failed to start LSB: starts the nginx web server.
Jul 03 17:43:48 systemd: Unit nginx.service entered failed state.
Jul 03 17:43:48 systemd: nginx.service failed.




janestone 发表于 2019-7-4 08:22:34

军哥,这个是什么问题呢?

licess 发表于 2019-7-4 08:58:25

nginx的没原生的systemd的service
直接 /etc/init.d/nginx restart 有错误的话也会直接看到
页: [1]
查看完整版本: CentOS 7 Nginx 启动报错要怎么解决?