nginx啓動報錯

nginx啓動報錯,信息以下:nginx

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)web

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)orm

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)進程

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)it

.....webkit

 

使用ps ef|grep nginx,並未發現有nginx進程,有可能被其餘進程佔用,這時能夠採用以下方式處理:grep

 

1. 查看80端口占用端口

   netstat -ntplbind

 

2. 殺掉佔用80端口的進程ps

 

kill -9 $pid

相關文章
相關標籤/搜索