坐怀不乱西门庆 发表于 2018-2-2 11:46:54

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

流河旱树 发表于 2018-2-2 11:47:55

Address already in use

分享吧 发表于 2018-2-2 11:51:23

kill -9 1468

坐怀不乱西门庆 发表于 2018-2-2 11:53:06


分享吧 发表于 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         

kooneey 发表于 2018-2-2 11:51:00


坐怀不乱西门庆 发表于 2018-2-2 11:53

# kill -9 1468
-bash: kill: (1468) - No such process
# sudo service nginx st ...
killall -9 httpd

南琴浪 发表于 2018-2-2 11:53:50

/etc/init.d/apache2 stop 这个不存在的话, 你不是用脚本安装的吧.

坐怀不乱西门庆 发表于 2018-2-2 11:53:00


分享吧 发表于 2018-2-2 11:51

kill -9 1468
好了,这个id一直在变,杀不掉

gaoji.me 发表于 2018-2-2 11:56:12

看错,是不有什么守护进程

spanfkyous 发表于 2018-2-2 12:12:09

我以为楼主是那个卖1024码的西门庆

BWH123Carseason 发表于 2018-2-2 11:51:00

错了编辑掉我猜楼主用的阿里云
页: [1] 2
查看完整版本: nginx怎么就启动不了呢,