2015-01-11 249 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在正確的端口運行良好!

請幫

回答