[root@~]# yum install iftop Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * epel: mirrors.neusoft.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package iftop.x86_64 0:1.0-0.7.pre4.el5 will be installed --> Processing Dependency: libpcap.so.0.9.4()(64bit) for package: iftop-1.0-0.7.pre4.el5.x86_64 --> Finished Dependency Resolution Error: Package: iftop-1.0-0.7.pre4.el5.x86_64 (epel) Requires: libpcap.so.0.9.4()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
对libpcap的依赖和我们安装的版本不一致, 于是我尝试下载安装包手动安装试试
1 2 3 4
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz cd iftop-0.17 ./configure make && make install
[root@ ~]# vnstat --help vnStat 1.6 by Teemu Toivola <tst at iki dot fi>
-q, --query query database -h, --hours show hours -d, --days show days -m, --months show months -w, --weeks show weeks -t, --top10 show top10 -s, --short use short output -u, --update update database -i, --iface select interface (default: eth0) -?, --help short help -v, --version show version -tr, --traffic calculate traffic -l, --live 实时显示流量数据
See also "--longhelp" for complete options list and "man vnstat".