VPS侦探论坛

 找回密码
 注册
搜索
查看: 102|回复: 2

CentOS 7 Nginx 启动报错要怎么解决?

[复制链接]
发表于 2019-7-3 17:59:30 | 显示全部楼层 |阅读模式



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.




美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

 楼主| 发表于 2019-7-4 08:22:34 | 显示全部楼层

军哥,这个是什么问题呢?
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-7-4 08:58:25 | 显示全部楼层

nginx的没原生的systemd的service
直接 /etc/init.d/nginx restart 有错误的话也会直接看到
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2019-7-24 01:11 , Processed in 0.041450 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表