Nginx启动报错

来源:12-7 nginx安装与配置

weixin_慕哥5061661

2022-04-14

//报错信息
Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.

//截图
图片描述

图片描述

写回答

3回答

甲蛙

2022-04-15

这个问题好了吗?他让你打这两个命令看看问题:See "systemctl status nginx.service" and "journalctl -xe" for details.
下载视频          
0
0

weixin_慕哥5061661

提问者

2022-04-15

//报错信息

Last login: Thu Apr 14 21:12:20 2022 from 222.138.220.215


Welcome to aliyun Elastic Compute Service!


[root@iZ28s0ahcusZ ~]# sbin/nginx  -s reload

-bash: sbin/nginx: No such file or directory

[root@iZ28s0ahcusZ ~]# service nginx start

Redirecting to /bin/systemctl start nginx.service

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

[root@iZ28s0ahcusZ ~]# killall -9 nginx

nginx: no process found

[root@iZ28s0ahcusZ ~]# service nginx start

Redirecting to /bin/systemctl start nginx.service

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

[root@iZ28s0ahcusZ ~]# systemctl status nginx.service

鈼� nginx.service - The nginx HTTP and reverse proxy server

   Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)

   Active: failed (Result: exit-code) since Fri 2022-04-15 10:40:36 CST; 36s ago

  Process: 19163 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)

  Process: 19160 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)

  Process: 19158 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)


Apr 15 10:40:34 iZ28s0ahcusZ nginx[19163]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

Apr 15 10:40:34 iZ28s0ahcusZ nginx[19163]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

Apr 15 10:40:35 iZ28s0ahcusZ nginx[19163]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

Apr 15 10:40:35 iZ28s0ahcusZ nginx[19163]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

Apr 15 10:40:36 iZ28s0ahcusZ nginx[19163]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

Apr 15 10:40:36 iZ28s0ahcusZ nginx[19163]: nginx: [emerg] still could not bind()

Apr 15 10:40:36 iZ28s0ahcusZ systemd[1]: nginx.service: control process exited, code=exited status=1

Apr 15 10:40:36 iZ28s0ahcusZ systemd[1]: Failed to start The nginx HTTP and reverse proxy server.

Apr 15 10:40:36 iZ28s0ahcusZ systemd[1]: Unit nginx.service entered failed state.

Apr 15 10:40:36 iZ28s0ahcusZ systemd[1]: nginx.service failed.

[root@iZ28s0ahcusZ ~]# sbin/nginx  -s reload

-bash: sbin/nginx: No such file or directory

[root@iZ28s0ahcusZ ~]# 


0
0

weixin_慕哥5061661

提问者

2022-04-15

//补充 报错信息

//img.mukewang.com/szimg/6258dc0709b5780815810307.jpg

//img.mukewang.com/szimg/6258dc0a091c16d316120743.jpg


0
0

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程