Centos 网络监测

 

监测所有进程的发送和接受流量情况

 

yum install -y nethogs
nethogs
nethogs eth1   //只查看eth1网卡(默认)的信息
nethogs -d 5    //查看,每5秒刷新一次

 

查出某个进程占用的端口号

 

netstat -tunlp |grep pid

 

查看Mysql 端口的连接数

netstat -nat|grep -i "3305"|wc -l

 

posted @ 2020-08-14 18:01  万隆  阅读(181)  评论(0编辑  收藏  举报