全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2846|回复: 12
打印 上一主题 下一主题

nginx怎么就启动不了呢,

[复制链接]
跳转到指定楼层
1#
发表于 2018-2-2 11:46:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
CentOS 6 x86系统
应该是apache2的锅,可就关不掉
[root@dd ~]# service httpd stop
Stopping httpd:                                            [  OK  ]
[root@dd ~]# sudo service nginx start
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()
                                                           [FAILED]
[root@dd ~]# netstat -ltunp
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:22                  0.0.0.0:*                   LISTEN      1068/sshd           
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1277/sendmail      
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      1468/httpd         
tcp        0      0 :::22                       :::*                        LISTEN      1068/sshd
[root@dd ~]# /etc/init.d/apache2 stop
-bash: /etc/init.d/apache2: No such file or directory
[root@dd ~]# sudo /etc/init.d/apache2 stop
sudo: /etc/init.d/apache2: command not found
2#
发表于 2018-2-2 11:47:55 | 只看该作者
Address already in use
3#
发表于 2018-2-2 11:51:23 | 只看该作者
kill -9 1468
4#
 楼主| 发表于 2018-2-2 11:53:06 | 只看该作者

[root@dd ~]# kill -9 1468
-bash: kill: (1468) - No such process
[root@dd ~]# sudo service nginx start
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()
                                                           [FAILED]
[root@dd ~]# netstat -ltunp
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:22                  0.0.0.0:*                   LISTEN      1068/sshd           
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1277/sendmail      
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      1830/httpd         
tcp        0      0 :::22                       :::*                        LISTEN      1068/sshd         
5#
发表于 2018-2-2 11:53:50 | 只看该作者
坐怀不乱西门庆 发表于 2018-2-2 11:53
[root@dd ~]# kill -9 1468
-bash: kill: (1468) - No such process
[root@dd ~]# sudo service nginx st ...

killall -9 httpd
6#
发表于 2018-2-2 11:56:12 | 只看该作者
/etc/init.d/apache2 stop 这个不存在的话, 你不是用脚本安装的吧.
7#
 楼主| 发表于 2018-2-2 12:12:09 | 只看该作者

好了,这个id一直在变,杀不掉
8#
发表于 2018-2-2 12:22:34 | 只看该作者
看错,是不有什么守护进程
9#
发表于 2018-2-2 12:26:33 | 只看该作者
我以为楼主是那个卖1024码的西门庆
10#
发表于 2018-2-2 12:50:16 | 只看该作者
错了  编辑掉
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-6-26 14:08 , Processed in 0.063833 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表