该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
[root@localhost ~]# netstat -nupl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:694 0.0.0.0:* 3486/rpc.statd
udp 0 0 0.0.0.0:697 0.0.0.0:* 3486/rpc.statd
udp 0 0 0.0.0.0:52425 0.0.0.0:* 3847/avahi-deamon:
udp 0 0 0.0.0.0:5353 0.0.0.0:* 3847/avahi-deamon:
udp 0 0 0.0.0.0:111 0.0.0.0:* 3454/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 2988/cupsd
udp 0 0 :::39218 :::* 3847/avahi-deamon:
udp 0 0 :::5353 :::* 3847/avahi-deamon:
[root@localhost ~]# netstat -ntpl
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:111 0.0.0.0:* LISTEN 3454/portmap
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2988/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3743/sendmail:acce
tcp 0 0 0.0.0.0:700 0.0.0.0:* LISTEN 3486/rpc.statd
tcp 0 0 :::22 :::* LISTEN 3710/sshd
[root@localhost ~]# nc -lp 8080 &
[1] 4398
[root@localhost ~]#netstat -an |grep:8080
[root@localhost ~]# wget http://localhost:8080
--2012-01-22 19:11:05-- http://localhost:8080/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... failed:Connection refused.