本文主要是介绍CentOS6.5下使用NetHogs监控进程网络使用情况,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Nethogs 是一个终端下的网络流量监控工具,它的特别之处在于可以显示每个进程的带宽占用情况,这样可以更直观获取网络使用情况。它支持 IPv4 和 IPv6 协议、支持本地网卡及 PPP 链接。
下载:
从SourceForge上下载nethogs-0.8.0.tar.gz
使用wget下载:
wget http://sourceforge.net/projects/nethogs/files/nethogs/0.8/nethogs-0.8.0.tar.gz/download
安装:
安装之前需要先 yum install ncurses*
[root@localhost Desktop]# yum install ncurses*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile* base: mirrors.skyshe.cn* extras: mirrors.skyshe.cn* updates: mirrors.skyshe.cn
Setting up Install Process
Package ncurses-5.7-3.20090208.el6.x86_64 already installed and latest version
Package ncurses-libs-5.7-3.20090208.el6.x86_64 already installed and latest version
Package ncurses-base-5.7-3.20090208.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.7-3.20090208.el6 will be installed
---> Package ncurses-static.x86_64 0:5.7-3.20090208.el6 will be installed
---> Package ncurses-term.x86_64 0:5.7-3.20090208.el6 will be installed
--> Finished Dependency ResolutionDependencies Resolved========================================================================================================================================================================Package Arch Version Repository Size
========================================================================================================================================================================
Installing:ncurses-devel x86_64 5.7-3.20090208.el6 base 642 kncurses-static x86_64 5.7-3.20090208.el6
这篇关于CentOS6.5下使用NetHogs监控进程网络使用情况的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!