netstat 查看端口

網絡鏈接狀態網絡

sshd  遠程鏈接服務    22(端口)    rsync  873   sendmail  25    memcached  11211ssh


查看監聽端口tcp

[root@wy ~]# netstat -lnpide

Active Internet connections (only servers)memcached

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program namespa

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1072/rpcbindserver

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


查看網絡鏈接狀態(能夠看到服務端與客戶端的通訊狀態)it

[root@wy ~]# netstat -anio

相關文章
相關標籤/搜索