nginx: [emerg] bind() to 0.0.0.0:9001 failed (10013: An attempt was made to access a socket in a way)

在启动nginx的时候出现了这个错误,原因是9001端口被占用,解决办法是:在cmd中输入命令行:

netstart -ano | findstr 9001

得到PID 为4 的进程号,说明9001被进程号为4的进程占用,进入任务管理器,找到PID为4的进程名称,右键打开文件所在位置,发现是ntoskrnl.exe这个程序运行的,

nginx: [emerg] bind() to 0.0.0.0:9001 failed (10013: An attempt was made to access a socket in a way)

 

 在服务中找到如图所示的服务结束,将启动方式改为手动即可。

nginx: [emerg] bind() to 0.0.0.0:9001 failed (10013: An attempt was made to access a socket in a way)

 

nginx: [emerg] bind() to 0.0.0.0:9001 failed (10013: An attempt was made to access a socket in a way)

上一篇:Oracle深度成长计划 | 第二讲:学习大纲


下一篇:SQL语句中常用的函数及表之间的关联