当前位置: 技术问答>linux和unix
求助ssh占用80端口??这是怎么回事??
来源: 互联网 发布时间:2017-01-25
本文导语: [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...
[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端口没关系的呀??不明白
(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看下
|
这样查出来全都干掉吧
|
看下/etc/ssh/sshd_config的配置端口是多少