网络连接状态

sshd  远程连接服务    22(端口)    rsync  873   sendmail  25    memcached  11211


查看监听端口

[root@wy ~]# netstat -lnp

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      1072/rpcbind

tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1228/sshd


查看网络连接状态(可以看到服务端与客户端的通信状态)

[root@wy ~]# netstat -an