侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

CentOS 7 下 Nginx 启动脚本报错相关处理

2023-11-21 星期二 / 0 评论 / 0 点赞 / 64 阅读 / 2372 字

问题一:Reloading nginx configuration (via systemctl): Warning: nginx.service changed on disk. Run 'syst

问题一:Reloading nginx configuration (via systemctl):  Warning: nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units.
处理:运行 systemctl daemon-reload


问题二: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.、
处理:1、systemctl status nginx.service 

● nginx.service - SYSV: Nginx is a high-performance web and proxy server.
   Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2017-03-21 11:29:22 CST; 52s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3202 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
   CGroup: /system.slice/nginx.service
           ├─ 2976 nginx: worker process
           └─27743 nginx: master process /mnt/nginx/sbin/nginx -c /mnt/nginx/conf/nginx.conf

Mar 21 11:29:20 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 21 11:29:21 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 21 11:29:21 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] still could not bind()
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: [FAILED]
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z systemd[1]: nginx.service: control process exited, code=exited status=1
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z systemd[1]: Failed to start SYSV: Nginx is a high-performance web and proxy server..
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z systemd[1]: Unit nginx.service entered failed state.
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z systemd[1]: nginx.service failed.

2、killall nginx

3、service nginx restart

广告 广告

评论区