nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
今天在测试Nginx功能的时候,出现问题如下:
nginx: [emerg] bind() to 0.0.0.0:443 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:8083 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:7091 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:7092 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:1935 failed (98: Address already in use)
原因是:
在测试过程中,关闭过rtmp的端口号,./kill -9 pid(rtmp:1935)
结果在启动 Nginx时,./nginx -c /usr/local/nginx/conf/nginx.conf
出现上述错误
结果过程如下:
首先用lsof -i:80看下80端口被什么程序占用。lsof返回结果如下:
[root@localhost sbin]# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 63170 root 9u IPv4 14243472 0t0 TCP *:http (LISTEN)
关闭进程:kill -9 63170
重新启动Nginx:[root@localhost sbin]# ./nginx -c /usr/local/nginx/conf/nginx.conf
问题解决
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)相关推荐
- nginx: [emerg] bind() to 0.0.0.0:66 failed (98: Address already in use)
查看进程 查看日志 root@ubuntu:/usr/local/nginx/sbin# find / -name error.log /var/log/apache2/error.log /usr/ ...
- nginx启动失败nginx: [emerg] bind() to 0.0.0.0:7001 failed (98: Address already in use)
./nginx 启动nginx,在启动时报错端口被占用 [root@localhost sbin]# ./nginx nginx: [emerg] bind() to 0.0.0.0:7001 fai ...
- Nginx重启时提示nginx: [emerg] bind() to 0.0.0.0解决方法 老蒋 发布于 2019-06-03 分类:运维笔记 评论(0) 2000+站长交流QQ群: 59
c 老蒋 发布于 2019-06-03 分类:运维笔记 评论(0) 2000+站长交流QQ群: 594467847(资源和技术交流) 昨天下午老蒋在一台服务器中折腾迁移数据问题的时候,重启Nginx的 ...
- nginx: [emerg] bind() to 0.0.0.0:8082 failed (10013: An attempt was made to acce ss a socket in a wa
nginx.exe 启动报错 nginx: [emerg] bind() to 0.0.0.0:8082 failed (10013: An attempt was made to acce ss a ...
- nginx: [emerg] bind() to 0.0.0.0:443 failed (10013: An attempt was made to access a socket in a way
启动nginx 报如下错误: nginx: [emerg] bind() to 0.0.0.0:443 failed (10013: An attempt was made to access a s ...
- nginx: [emerg] CreateFile() “D:\soft\nginx-1.18.0/logs/nginx.pid“ failed (5: Access is denied)
win10启动nginx报错 nginx: [emerg] CreateFile() "D:\soft\nginx-1.18.0/logs/nginx.pid" failed (5 ...
- 解决nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
2019独角兽企业重金招聘Python工程师标准>>> 今天在ubuntu10.04上面安装nginx,安装完成之后尝试启动nginx,使用命令: sudo /etc/init.d/ ...
- 解决nginx emerg bind to 80 failed 98 Address alrea
首选是安装nginx,在./configure出错的情况下,查看错误的报告,如果是缺少一些必要的库,安装这些库,可能的有ssl pcre(这个库我是使用源码安装的,在线安装没有成功,提示看不到这个库) ...
- nginx[21944]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Ad...se)
2019独角兽企业重金招聘Python工程师标准>>> 错误概述 这个错误真的很坑人,第一次安装然后可能是启动了多起,出现这个错误,80端口被占用 解决方法 当然是 把占用80 端口 ...
最新文章
- pandas常见的时间处理函数
- cat3 utp是不是网线_UTPCAT3网络双绞线规格型号
- CodeSmith基础(二)
- c语言为什么有这么多的编程环境?_为什么98%的程序员学编程都会从C语言开始?...
- 安装 pear、phpunit 测试用例步骤方法
- 计算机网络学习笔记(1. 什么是计算机网络?)
- 密码学是如何保护区块链的 1
- tomcat+路由器+oray
- Q107:Linux系统下GDB对PBRT-V3进行debug
- 新手坐高铁怎么找车厢_坐动车怎么找车厢
- Ajax学习笔记-请求参数的格式-5
- linux信号量使用
- c语言程序软件下载,C语言下载_C语言官方下载【C语言编程软件】-太平洋下载中心...
- 云存储服务OneDrive捆绑系统销售,30多家欧洲公司投诉微软垄断
- finecms相关信息-随时更新
- Android换肤功能实现与换肤框架QSkinLoader使用方式介绍
- 记一次腾讯TBS浏览服务集成实践
- 前端 input 自动填充功能
- Unity使用Package Manager管理自定义插件
- 增强网络口碑营销效果的5个方法
热门文章
- python 包管理和virturlenv
- 关于iframe的contentDocument和contentWindow
- 发现文件夹和文件夹都显示为蓝色和绿色,是否中毒了?
- 换光纤猫 ZXA10 F420
- “《面对面---做好每一天》--中国短道速滑教练李琰”读后感
- 2020CCPC(长春) - Strange Memory(树上启发式合并+位运算)
- HDU - 5572 An Easy Physics Problem(几何-碰撞问题)
- CodeForces - 1118F1 Tree Cutting (Easy Version)(树形dp)
- exe软件ui嵌套软件_UI设计行业中的PS软件起什么用途
- mybatis获取mysql存储过程out参数的值_mybatis接受mysql存储过程out的值