【发布时间】:2015-03-09 16:21:26
【问题描述】:
我在使用 Nginx 时遇到了一些问题,我收到 [b]500 internal server error[/b]
所以我去[i] /var/log/nginx/error.log[/i]查看日志
我发现了这些错误:
2015/01/11 21:16:00 [emerg] 3365#0: bind() to xx.xxx.xxx.x:80 failed (98: Address already in use)
2015/01/11 21:16:00 [emerg] 3365#0: bind() to [::]:80 failed (98: Address already in use)
2015/01/11 21:16:00 [emerg] 3365#0: still could not bind()
我在另一个威胁中读到它是因为其他一些服务正在同一个锅中运行,所以我使用了这个命令:netstat -tulpn | grep --color :80
tcp 0 0 xx.xxx.xxx.x:80 0.0.0.0:* LISTEN 3102/nginx
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 3363/httpd
tcp 0 0 :::80 :::* LISTEN 3102/nginx
tcp 0 0 :::8081 :::* LISTEN 3363/httpd
所以对我来说,这意味着 Nginx 在正确的端口上运行良好!
请帮忙
【问题讨论】:
标签: nginx