日期:2014-05-16  浏览次数:20922 次

求助ssh占用80端口??这是怎么回事??
[root@web02 conf]# /usr/local/apache/bin/httpd -k start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[root@web02 conf]# netstat -lnp|grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 6989/sshd  
[root@web02 conf]# ps 6989
  PID TTY STAT TIME COMMAND
 6989 ? S 0:00 /sbin/sshd
[root@web02 conf]# kill -9 6989
[root@web02 conf]# /usr/local/apache/bin/httpd -k start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[root@web02 conf]# netstat -lnp|grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 31626/sshd
[root@web02 conf]# kill -9 31626
[root@web02 conf]# netstat -lnp|grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 31630/klogd -c 1 -x 
[root@web02 conf]# netstat -lnp |grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 31633/sshd
[root@web02 conf]# netstat -lnp |grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 31641/acpid  
[root@web02 conf]# netstat -lnp |grep 80
[root@web02 conf]#/usr/local/apache/bin/httpd -k start
[root@web02 conf]#
起动成功
为什么会有这么多的进程去占80端口??这些进程应该和80端口没关系的呀??不明白

------解决方案--------------------
lsof -i:80看下
------解决方案--------------------
探讨

lsof -i:80看下

------解决方案--------------------
看下/etc/ssh/sshd_config的配置端口是多少