bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
时间: 2023-12-02 14:08:44 浏览: 127
这个错误信息表示在尝试绑定到0.0.0.0:80时失败,原因是被其访问权限限制的方式拒绝了。这通常是因为80端口已经被其他进程占用,导致nginx无法绑定到该端口进行监听。[2]
要解决这个问题,你可以执行以下步骤:
1. 打开命令提示符(cmd)。
2. 输入以下命令来找到占用80端口的进程ID:`netstat -aon | findstr "80"`
3. 根据命令的输出,你可以看到占用80端口的进程的PID(进程ID)。
4. 打开任务管理器,切换到"详细信息"选项卡,找到与PID对应的进程。
5. 结束该进程或者更换nginx的监听端口,以便nginx能够成功启动。
请注意,如果80端口被其他重要的服务占用,你可能需要谨慎操作,确保其他服务不受影响。同时,如果你想继续使用80端口,你也可以通过更改其他正在运行的服务的端口来释放80端口。<span class="em">1</span><span class="em">2</span><span class="em">3</span><span class="em">4</span>
#### 引用[.reference_title]
- *1* [nginx: [emerg] bind() to 0.0.0.0:443 failed (10013: An attempt was made to access a socket in a way](https://blog.csdn.net/janet1100/article/details/125315936)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* *4* [nginx启动失败(bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket…...](https://blog.csdn.net/zch981964/article/details/127318302)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [windows下nginx的安装使用及解决80端口被占用nginx不能启动的问题](https://download.csdn.net/download/weixin_38501299/14090973)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文