zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Linux监控工具简单整合

Linux监控工具 简单 整合
2023-09-27 14:24:16 时间

top

查看系统资源占用情况

$ top -c

lsof

列出当前系统打开文件

$ lsof -i

$ lsof -i:端口号

netstat

用于显示tcp,udp的端口和进程等相关情况

$ netstat -tunlp

$ netstat -tunlp|grep 端口号

参考:
https://zhidao.baidu.com/question/629026036980496284.html

iftop

监控网卡的实时流量

$ yum install iftop

$ iftop

参考:
https://www.vpser.net/manage/iftop.html

nethogs

进程/程序网络带宽占用情况

$ yum install nethogs

$ nethogs

参考:
https://www.cnblogs.com/carbon3/p/5930803.html