netstat查看不到端口
我 80端口给的是squid,我squid启动后。看不到80端口,但是程序可以正常访问。这是什么情况
如下
lsof -i:80 显示没有
------------------------------------------------------------------------
# lsof -i:80
# netstat -ntlp
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:5666 0.0.0.0:* LISTEN 2422/nrpe
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 29813/snmpd
tcp 0 0 :::6666 :::* LISTEN 5552/java
tcp 0 0 :::81 :::* LISTEN 18579/httpd
tcp 0 0 :::24373 :::* LISTEN 2298/sshd
# telnet 127.0.0.1 80
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
^]
telnet> quit
Connection closed. 是啊,怎么会看不到呢
用用nmap127.0.0.1 回复 2# shang2010
telnet通 ,用nmap肯定会显示open,关键是为什么用netstat 却看不到 80端口。
netstat -an | grep 80 回复 4# csoho2000
喜欢用netstat -aon 回复 4# csoho2000
看不到 80
页:
[1]