首页 > 其他 > 详细

nginx启动报错

时间:2020-06-16 21:42:22      阅读:50      评论:0      收藏:0      [点我收藏+]

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

技术分享图片

 

nginx启动报错

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!