blog » 网络软件 » 网络流量监控软件vnStat

网络流量监控软件vnStat

这两天找了个流量监测软件,可以在命令行下运行的,资源占用也很少,基本可以忽略了!直接说怎么用吧!

 

sudo aptitude install  #Ubuntu下安装

yum install vnstat  #CentOS下安装

vnstat -u -i ent0  #加入监测计划第五分钟运行一次

vnstat -d #按天查看

vnstat -h #按小时查看

vnstat –help #更多功能看帮助

下面这个是手动安装过程.

一·安装vnStat及守护进程脚本

1

2

3

4

5

wget http://humdi.net/vnstat/vnstat-1.10.tar.gz

tar zxvf vnstat-1.10.tar.gz

cd vnstat-1.10

make

make install
1

2

3

cd /etc/init.d

wget http://humdi.net/vnstat/init.d/redhat/vnstat

chmod +x vnstat

注意,上面这个wget的是centos的,如果你其他系统请参见http://humdi.net/vnstat/上面的地址。

二·配置&运行

1

2

vnstat --i venet0

/etc/init.d/vnstat start

注意,首先请用ifconfig查看自己是哪个网卡是外网IP,通常来说都是venet0

via{http://vv15.com/2011/01/vps-centos-vnstart/}
via{http://bpio.org/index.php/archives/9}

原创文章,转载请注明: 转载自PT Ubuntu Blog

本文链接地址: http://www.ptubuntu.com/2011/02/4093.html

Share
RSS 2.0 | leave a response | trackback

4 Responses

  1. 二 9th, 2011 / 07:24  (Quote) 囧啊囧 Says:

    很好用,装好久了

  2. 二 9th, 2011 / 19:24  (Quote) ugg boots outlet Says:

    这个在我们这边貌似很不受欢迎吖、、、

  3. 二 10th, 2011 / 00:44  (Quote) ptubuntu Says:

    我主要是现在用于公司服务器的防火墙上.可以统计网络总流量.

  4. 二 12th, 2011 / 00:43  (Quote) 哈尔滨团购 Says:

    这个软件还是很给力的

发表评论


Verify Code   If you cannot see the CheckCode image,please refresh the page again!