码上敲享录 > nginx > An attempt was made to access a socket in a way forbidden by its access permissions,nginx启动不了

An attempt was made to access a socket in a way forbidden by its access permissions,nginx启动不了

章节目录 2019-12-12已有6516人阅读 评论(0)

nginx启动不了,进入nginx安装目录下的logs的error.log(D:\nginx-1.17.6\logs)查看错误日志信息:

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

查看原来是80端口被占用

解决方法:(方法一比较方便)

方法1、进入D:\nginx-1.17.6\conf下的nginx.conf将监听端口改为8081,将server {

       listen       8081;

       server_name  localhost;}

方法2、关闭系统占用80端口的程序


Windows平台
在windows命令行窗口下执行:
C:\>netstat -aon|findstr "80"

TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448

最后一个数值是PID 记录下来

打开

任务管理器=>选择菜单查看=>选择列=>勾选PID

结果看到对应的是“System”,这个进程,悲剧了!

然后又在网上搜了是:sqlserver reporting services服务 占用进程!


0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交