本文介绍几款 Linux 运维比较实用的工具,希望对 Linux 运维人员有所帮助。
Nethogs 是一个终端下的网络流量监控工具可以直观的显示每个进程占用的带宽。 下载:http://sourceforge.net/projects/nethogs/files/nethogs/0.8/nethogs-0.8.0.tar.gz/download
[root@localhost ~]#yum -y install libpcap-devel ncurses-devel
[root@localhost ~]# tar zxvf nethogs-0.8.0.tar.gz
[root@localhost ~]# cd nethogs
[root@localhost nethogs]# make && make install
[root@localhost nethogs]# nethogs eth0

IOZone 是一款 Linux 文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载:http://www.iozone.org/src/current/
[root@localhost current]# tar xvf iozone3_420.tar
[root@localhost ~]# cd iozone3_420/src/current/
[root@localhost current]# make linux
[root@localhost current]# ./iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb ./iozone.xls
-a 使用全自动模式 -n 为自动模式设置最小文件大小 (Kbytes)。 -g 设置自动模式可使用的最大文件大小 Kbytes。 -i 用来指定运行哪个测试。 -f 指定测试文件的名字完成后自动删除 -R 产生 Excel 到标准输出 -b 指定输出到指定文件上
IOTop 命令是专门显示硬盘 IO 的命令, 界面风格类似 top 命令。
[root@localhost ~]# yum -y install iotop

IPtraf 是一个运行在 Linux 下的简单的网络状况分析工具。
[root@localhost ~]# yum -y install iptraf

iftop 是类似于 linux 下面 top 的实时流量监控工具。比 iptraf 直观些。 下载:http://www.ex-parrot.com/~pdw/iftop/
[root@localhost ~]# tar zxvf iftop-0.17.tar.gz
[root@localhost ~]# cd iftop-0.17
[root@localhost iftop-0.17]# ./configure
[root@localhost iftop-0.17]# make && make install
[root@localhost iftop-
本文出处: https://mp.weixin.qq.com/s?__biz=MzI0MDQ4MTM5NQ==
|