nginx怎么就启动不了呢,
CentOS 6 x86系统应该是apache2的锅,可就关不掉
003.gif
# service httpd stop
Stopping httpd:
# sudo service nginx start
Starting nginx: nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: still could not bind()
# 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
# /etc/init.d/apache2 stop
-bash: /etc/init.d/apache2: No such file or directory
# sudo /etc/init.d/apache2 stop
sudo: /etc/init.d/apache2: command not found
Address already in use
kill -9 1468
分享吧 发表于 2018-2-2 11:51
kill -9 1468
# kill -9 1468
-bash: kill: (1468) - No such process
# sudo service nginx start
Starting nginx: nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: still could not bind()
# 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
坐怀不乱西门庆 发表于 2018-2-2 11:53
# kill -9 1468
-bash: kill: (1468) - No such process
# sudo service nginx st ...
killall -9 httpd /etc/init.d/apache2 stop 这个不存在的话, 你不是用脚本安装的吧.
分享吧 发表于 2018-2-2 11:51
kill -9 1468
好了,这个id一直在变,杀不掉 看错,是不有什么守护进程 我以为楼主是那个卖1024码的西门庆 错了编辑掉我猜楼主用的阿里云
页:
[1]
2