nginx重启 failed (98: Address already in use)
来源:互联网 发布:recovery清除数据 编辑:程序博客网 时间:2024/06/04 01:15
centos6.5,启动nginx服务,无法开启,导致网页打不开。把服务从起一下发现提示错误如下:
Starting 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)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
问题描述:地址已被使用。可能nginx服务卡死了,导致端口占用,出现此错误。
查看端口
netstat -ntpl
[root@localhost /]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:58819 0.0.0.0:* LISTEN 2094/rpc.statd
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 5060/mysqld
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2294/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2271/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2121/cupsd
tcp 0 0 :::23527 :::* LISTEN 2094/rpc.statd
tcp 0 0 :::80 :::* LISTEN 2347/httpd
tcp 0 0 :::22 :::* LISTEN 2271/sshd
tcp 0 0 ::1:631 :::* LISTEN 2121/cupsd
kill 2347
[root@localhost /]# service nginx start
Starting nginx: [ OK ]
[root@localhost /]# ps -ef|grep nginx
root 2816 1 0 11:03 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody 2817 2816 0 11:03 ? 00:00:00 nginx: worker process
nobody 2818 2816 0 11:03 ? 00:00:00 nginx: worker process
nobody 2819 2816 0 11:03 ? 00:00:00 nginx: worker process
nobody 2820 2816 0 11:03 ? 00:00:00 nginx: worker process
root 2823 2732 0 11:03 pts/0 00:00:00 grep nginx
- nginx重启 failed (98: Address already in use)
- 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 [::]:80 failed (98: Address already in use)
- nginx: [emerg] bind() to 0.0.0.0:8100 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 (98: Address already in use)
- nginx: [emerg] bind() to [::]: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:443 failed (98: Address already in use)
- 解决nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- centOS7访问nginx失败解决-.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)
- C++STL&GP学习后记——初识STL
- Linux(centos)不能使用FTP 命令 -bash: ftp: command not found
- Mybatis传参数的方式总结
- JAVA开发中的Model1和Model2模型
- redis配置
- nginx重启 failed (98: Address already in use)
- mysql中创建表删除表及表查询
- MD5加密技术(加盐)
- 数据库系统概念(机械工业出版社,第六版)复习——第十二章:事务管理
- javascript深入理解js闭包
- 棋盘覆盖问题(分治)
- 使用mybatis的一个坑
- 375. Guess Number Higher or Lower II
- iOS学习笔记-workspace添加工程时只有一个proj文件问题