nginx启动报错

查看logs目录下error.log

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)

绑定端口80失败

cmd下输入 

netstat -aon|findstr "80"

 

 

 端口监听4

输入 

tasklist|findstr "4"

 

 端口被系统占用了,我选择修改配置文件

在conf文件夹下 ,点开negix.conf ,把80改为81端口

 

 访问 http://localhost:81

 

posted @ 2020-06-16 21:08  青青一笑  阅读(166)  评论(0)    收藏  举报