nginx启动报错

时间:2020-06-16 21:42:22   收藏:0   阅读:54

查看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

技术分享图片

 

原文:https://www.cnblogs.com/qqqyx/p/13145126.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!