请稍等 ...
×

采纳答案成功!

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

nginx 报错

sudo service nginx restart 
Redirecting to /bin/systemctl restart 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.

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 Mon 2019-05-13 17:15:38 CST; 7min ago
  Process: 24060 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
  Process: 24056 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  Process: 24054 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
ps aux | grep nginx                                                                                                    
root     23885  0.0  0.0 125100  2164 ?        Ss   16:57   0:00 nginx: master process /usr/sbin/nginx
nginx    23886  0.0  0.0 125620  3636 ?        S    16:57   0:00 nginx: worker process
nginx    23887  0.0  0.0 125620  3636 ?        S    16:57   0:00 nginx: worker process
yak      24099  0.0  0.0 112708   976 pts/7    S+   17:26   0:00 grep --color=auto nginx

图片描述

sudo /usr/sbin/nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

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

1回答

bobby 2019-05-15 17:33:34

这里报错是说因为80端口被占用了。你是不是安装过其他的nginx或者安装过apache,导致这个端口被其他服务占用了?

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号