bind() to 0.0.0.0:80 failed (98: Address already in use)
时间: 2023-11-08 15:15:42 浏览: 175
当启动Nginx时出现"bind() to 0.0.0.0:80 failed (98: Address already in use)"的错误提示,意味着80端口已经被其他程序占用了。解决这个问题的方法如下:首先,可以使用命令"ps -e | grep nginx"查看是否已经启动了Nginx进程。如果没有启动Nginx,则需要使用"netstat"命令来查看哪个程序在占用80端口。 在Linux系统中,可以使用"netstat -tuln | grep 80"命令来查看正在使用80端口的程序的PID(Process ID)。然后,可以使用"sudo kill <PID>"命令来终止占用80端口的程序。最后,再次尝试启动Nginx服务,问题应该就能够解决了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)](https://blog.csdn.net/roy8666/article/details/124504994)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [nginx启动时遇到的问题](https://download.csdn.net/download/weixin_38589314/14037351)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [ [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)](https://blog.csdn.net/qq_63010259/article/details/130465472)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文