全球主机交流论坛

标题: nginx怎么就启动不了呢, [打印本页]

作者: 坐怀不乱西门庆    时间: 2018-2-2 11:46
标题: nginx怎么就启动不了呢,
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

作者: 流河旱树    时间: 2018-2-2 11:47
Address already in use

作者: 分享吧    时间: 2018-2-2 11:51
kill -9 1468
作者: 坐怀不乱西门庆    时间: 2018-2-2 11:53
分享吧 发表于 2018-2-2 11:51
kill -9 1468

[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         
作者: kooneey    时间: 2018-2-2 11:53
坐怀不乱西门庆 发表于 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
作者: 南琴浪    时间: 2018-2-2 11:56
/etc/init.d/apache2 stop 这个不存在的话, 你不是用脚本安装的吧.
作者: 坐怀不乱西门庆    时间: 2018-2-2 12:12
分享吧 发表于 2018-2-2 11:51
kill -9 1468

好了,这个id一直在变,杀不掉
作者: gaoji.me    时间: 2018-2-2 12:22
看错,是不有什么守护进程
作者: spanfkyous    时间: 2018-2-2 12:26
我以为楼主是那个卖1024码的西门庆
作者: BWH123    时间: 2018-2-2 12:50
错了  编辑掉
作者: Carseason    时间: 2018-2-2 12:52
我猜楼主用的阿里云
作者: avi    时间: 2018-2-2 12:54
httpd 没关掉
/usr/sbin/httpd -k stop
试试介个
作者: feixuenet    时间: 2018-2-2 13:03
yum remove httpd -y
apt remove apache2 -y




欢迎光临 全球主机交流论坛 (https://loc.mjj8.eu.org/) Powered by Discuz! X3.4