请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Nginx启动报错

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

//截图
图片描述

图片描述

正在回答 回答被采纳积分+3

3回答

甲蛙 2022-04-15 14:33:28
这个问题好了吗?他让你打这两个命令看看问题:See "systemctl status nginx.service" and "journalctl -xe" for details.
下载视频          
0 回复 有任何疑惑可以回复我~
提问者 weixin_慕哥5061661 2022-04-15 10:46:30

//报错信息

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 回复 有任何疑惑可以回复我~
提问者 weixin_慕哥5061661 2022-04-15 10:44:32

//补充 报错信息

https://img1.sycdn.imooc.com//szimg/6258dc0709b5780815810307.jpg

https://img1.sycdn.imooc.com//szimg/6258dc0a091c16d316120743.jpg


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信