能够解答下 ubunto 搭载nginx 出现的代码问题
题目描述
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-12-28 11:28:42 CST; 2h 2min ago
Process: 17735 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 17732 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0
Dec 28 11:28:39 iZt4nj1w9mo4yvu13fox1uZ nginx[17735]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
Dec 28 11:28:40 iZt4nj1w9mo4yvu13fox1uZ nginx[17735]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
Dec 28 11:28:40 iZt4nj1w9mo4yvu13fox1uZ nginx[17735]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
Dec 28 11:28:41 iZt4nj1w9mo4yvu13fox1uZ nginx[17735]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
Dec 28 11:28:41 iZt4nj1w9mo4yvu13fox1uZ nginx[17735]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
Dec 28 11:28:42 iZt4nj1w9mo4yvu13fox1uZ nginx[17735]: nginx: [emerg] still could not bind()
Dec 28 11:28:42 iZt4nj1w9mo4yvu13fox1uZ systemd[1]: nginx.service: Control process exited, code=exited stat
Dec 28 11:28:42 iZt4nj1w9mo4yvu13fox1uZ systemd[1]: Failed to start A high performance web server and a rev
Dec 28 11:28:42 iZt4nj1w9mo4yvu13fox1uZ systemd[1]: nginx.service: Unit entered failed state.
Dec 28 11:28:42 iZt4nj1w9mo4yvu13fox1uZ systemd[1]: nginx.service: Failed with result 'exit-code'.
题目来源及自己的思路
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
你期待的结果是什么?实际看到的错误信息又是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误 98 是 地址已经被占用,你看看你机器上的 80 端口是不是有其他进程在使用
ss -ltnp | grep ":80 "