Nginx 提示10013: An attempt was made to access a socket in a way forbidden by its access permissions

Posted 在奋斗的大道

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx 提示10013: An attempt was made to access a socket in a way forbidden by its access permissions相关的知识,希望对你有一定的参考价值。

今天早上启动nginx,在错误日志中输出如下错误信息:

2022/01/28 09:23:22 [emerg] 12784#20692: bind() to 0.0.0.0:7098 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2022/01/28 09:27:44 [emerg] 17340#6804: bind() to 0.0.0.0:7088 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2022/01/28 09:29:05 [emerg] 972#16724: bind() to 0.0.0.0:7088 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)

错误原因:7098/7088 端口被占用

解决办法:

1、使用win+r快键键,打开窗口运行界面,输入cmd 点击确定,打开管理员界面

2、查询端口情况,输入如下指令:

netstat -aon | findstr :端口

 3、查询进程信息,输入如下指令:

tasklist|findstr "进程ID"

 结论:7088 端口被WXWork.exe 程序占用,使用任务管理器/服务管理器,找到对应进程或服务关闭即可.

以上是关于Nginx 提示10013: An attempt was made to access a socket in a way forbidden by its access permissions的主要内容,如果未能解决你的问题,请参考以下文章

10013: An attempt was made to access a socket in a way forbidden by its access permissions

Nginx启动报错:

PollingBlockTracker - encountered an error while attempting to update latest block:

安装intel xtu 遇到"Attempted to install on an unsupported platform"

SignTool Error: An error occurred while attempting/Error information: “SignerTimeStamp() failed.“(代码

SVN Attempted to lock an already-locked dir异常解决方法