Vnstat: Difference between revisions
From Leo's Notes
This page was last edited on 11 May 2013, at 22:09.
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== Installation == | |||
The following steps should work for CentOS/ScientificLinux/RHEL. | |||
<syntaxhighlight lang="bash" line start="1" enclose="div"> | <syntaxhighlight lang="bash" line start="1" enclose="div"> | ||
| Line 9: | Line 10: | ||
vnstat --testkernel | vnstat --testkernel | ||
/bin/cp examples/init.d/centos/vnstat /etc/init.d/vnstat | /bin/cp examples/init.d/centos/vnstat /etc/init.d/vnstat | ||
chkconfig --levels 234 --add vnstat | |||
vnstat -u -i eth0 | vnstat -u -i eth0 | ||
/etc/init.d/vnstat start | /etc/init.d/vnstat start | ||
Revision as of 22:09, 11 May 2013
Installation
The following steps should work for CentOS/ScientificLinux/RHEL.
wget http://humdi.net/vnstat/vnstat-1.11.tar.gz
tar -xzf vnstat-1.11.tar.gz
cd vnstat-1.11
make
make install
vnstat --testkernel
/bin/cp examples/init.d/centos/vnstat /etc/init.d/vnstat
chkconfig --levels 234 --add vnstat
vnstat -u -i eth0
/etc/init.d/vnstat start