2016-03-24 154 views
0

當我鍵入sudo nginx時,出現以下錯誤。我正在嘗試設置虛擬機。任何想法/建議?我在嘗試啓動nginx時收到錯誤

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:90 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:90 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:90 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:90 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) 
nginx: [emerg] bind() to 0.0.0.0:90 failed (98: Address already in use) 
nginx: [emerg] still could not bind() 

回答

1

這意味着,該端口已在使用中:

嘗試:(對於每一個失敗的端口,8090443

sudo fuser -k80/tcp 

然後

sudo service nginx restart 
+0

謝謝 - 我找出了什麼是錯的。有其他虛擬機運行,我沒有正確銷燬。 –

相關問題