Nginx 错误处理方法: bind() to 0.0.0.0:80 failed
来源:互联网 发布:我看网络用语走红 编辑:程序博客网 时间:2024/06/14 12:47
Nginx 错误处理方法: bind() to 0.0.0.0:80 failed
今天启动window上的nginx总是报错
错误信息是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)
大概意思是 nginx listen的80后端口被占用 于是百度了下查看端口的命令
运行–cmd
C:\>netstat -aon|findstr "80"
TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448
端口被进程号为2448的进程占用,继续执行下面命令:
C:\>tasklist|findstr "2448"
thread.exe 2016 Console 0 16,064 K
很清楚,thread占用了你的端口,Kill it
如果第二步查不到,那就开任务管理器,进程—查看—选择列—pid(进程位标识符)打个勾就可以了
看哪个进程是2448,然后杀之即可。
另外,强制终止进程: CMD命令:taskkill /F /pid 1408
其实上面我都还没解决问题 最后发现有个http.d 这个是apache的进程 结束了这个进程nginx才启动了
如果朋友们使用的phpstudy这个集成软件,那么你在使用它的nginx的时候就要注意了,如果你的listen端口不是80,但是还是出现了上述的错误,那么你要去看看 include vhost.conf里的配置
0 0
- Nginx 错误处理方法: bind() to 0.0.0.0:80 failed
- Nginx 错误处理方法: bind() to 0.0.0.0:80 failed
- nginx错误之 nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
- nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 错误解决
- nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 错误解决
- nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 错误解决
- mac 上nginx的错误 nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
- 解决nginx无法启动, bind() to 0.0.0.0:8080 failed的错误
- 【Nginx】nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- 【Nginx】nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- Restarting nginx daemon: nginxnginx: [emerg] bind() to 0.0.0.0:80 failed (98:
- Restarting nginx daemon: nginxnginx: [emerg] bind() to 0.0.0.0:80 failed (98:
- Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
- Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
- Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
- nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
- nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)问题的解决
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- android 与H5交互之基本
- iOS 微信支付详细步骤
- 汇编笔记
- Java Join
- SpringBatch简介
- Nginx 错误处理方法: bind() to 0.0.0.0:80 failed
- 2016年11月前端面试题整理汇总
- mysql数据库参数性能配置参考
- Oracle 11g密码过期
- php 在线浏览word paf
- echarts组件及基础名词介绍
- 《幸福的种子》文章要点
- 自己MarkDown编辑中使用的一些东西
- 用asmack,服务器是tigase ,创建房间,加入聊天室,聊天等的基本功能