2015-01-11 214 views
0

我遇到一些麻烦Nginx的即时得到[B] 500内部服务器错误[/ B]500内部服务器错误的Nginx

于是我就在[我]在/ var /日志/ nginx的/错误检查日志.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() 

我的,因为它是因为一些其他的服务在同煲乳宁,所以我用这个命令另一个威胁readed: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在正确的端口运行良好!

请帮

回答