当前位置:论坛首页 > Linux面板 > 求助

ubuntu装宝塔nginx日志一直有报错

发表在 Linux面板2017-11-20 14:58 [复制链接] 2 2058

ubuntu14.04   nginx1.12,nginx错误日志中一直有下面这类大量的报错,但是nginx使用时正常的,请问这些报错是什么原因呢?  

2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2017/11/19 20:17:53 [emerg] 1180#0: still could not bind()

使用道具 举报 只看该作者 回复
发表于 2017-11-20 15:28:03 | 显示全部楼层
有其他服务占用了80 443端口导致
你可以输入以下两条命令看看是什么服务占用了端口
  1. lsof -i :80
  2. lsof -i :443
复制代码
使用道具 举报 回复 支持 反对
发表于 2017-11-20 15:38:44 | 显示全部楼层
没有,不过现在日志也没有报错,不是随时报错,每天都会有一些错误记录,但是使用一切正常,奇怪的很。

COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
nginx   31317 root   17u  IPv4  922442      0t0  TCP *:http (LISTEN)
nginx   31318  www   17u  IPv4  922442      0t0  TCP *:http (LISTEN)
nginx   31319  www   17u  IPv4  922442      0t0  TCP *:http (LISTEN)
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表