[fenglepeng@centos]# netstat -lnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 000.0.0.0:220.0.0.0:* LISTEN 1035/sshd tcp 00 :::22 :::* LISTEN 1035/sshd udp 000.0.0.0:680.0.0.0:* 931/dhclient Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 68251/init @/com/ubuntu/upstart unix 2 [ ACC ] STREAM LISTENING 84291003/dbus-daemon /var/run/dbus/system_bus_socket
查看网络连接状况
1 2 3 4 5 6 7
[fenglepeng@centos]# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 000.0.0.0:220.0.0.0:* LISTEN tcp 00192.168.147.130:22192.168.147.1:23893 ESTABLISHED tcp 00 :::22 :::* LISTEN udp 000.0.0.0:680.0.0.0:*