玫瑰与猫 2019-07-07 16:09 采纳率: 0%
浏览 13394

Nginx启动时service nginx start出现错误

命令service nginx start

出现错误

Starting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
                                                           [FAILED]

然后查看详情systemctl status nginx.service

systemctl status nginx.service
● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
   Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2019-07-07 15:51:25 CST; 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 22685 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=5)Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3...ver...
Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: nginx.service: control process exited, code=exited status=5
Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IM...erver.
Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: Unit nginx.service entered failed state.
Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: nginx.service failed.
是什么问题啊

  • 写回答

1条回答 默认 最新

  • zhouchao6 2019-07-08 09:21
    关注

    配置文件检查了吗?nginx -t

    评论

报告相同问题?

悬赏问题

  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档