今天在测试服务器上准备看下网络流量
[root@localhost ~]# iptraf -d eth0
-bash: iptraf: command not found
发现运维同事没有给安装
只能自己手工安装了
首先安装需要的包:
yum -y install gcc
yum -y install glibc
yum -y install ncurses
安装完毕之后 我们现在开始安装iptraf
yum -y install iptraf
完毕后查找下 locate iptraf
iptraf -d eth0
就可以看到想要的流量信息了:
装iptraf查看网络流量" title="centos 装iptraf查看网络流量" style="margin: 0px; padding: 0px; list-style: none; word-wrap: break-word; max- 100%;">