This shows you the differences between two versions of the page.
vnstat:install:in_redhat [14.01.2020 20:32] vergo |
vnstat:install:in_redhat [20.01.2020 21:16] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installing vnStat in Red Hat ====== | ||
- | ===== Disclaimer ===== | ||
- | |||
- | These instructions assume | ||
- | |||
- | - access to ' | ||
- | - use only distribution version specific instructions | ||
- | - some basic Linux skills | ||
- | - commands aren't copypasted blindly | ||
- | - that the process is stopped in case of errors | ||
- | |||
- | ===== Red Hat 7 and later ===== | ||
- | |||
- | Open a terminal and gain root permissions | ||
- | |||
- | < | ||
- | |||
- | Verify that root has been gained | ||
- | |||
- | < | ||
- | |||
- | which should reply " | ||
- | |||
- | Install needed development packages | ||
- | < | ||
- | yum install make gcc wget sqlite sqlite-devel | ||
- | </ | ||
- | |||
- | Get the latest release and extract it | ||
- | < | ||
- | cd /usr/src | ||
- | wget http:// | ||
- | tar zxvf vnstat-2.5.tar.gz | ||
- | </ | ||
- | |||
- | Compile and install the binaries | ||
- | < | ||
- | cd vnstat-2.5 | ||
- | ./configure --prefix=/ | ||
- | </ | ||
- | |||
- | Install the service files and start the daemon | ||
- | < | ||
- | cp -v examples/ | ||
- | systemctl enable vnstat | ||
- | systemctl start vnstat | ||
- | </ | ||
- | |||
- | Verify that daemon process got started | ||
- | < | ||
- | pgrep -c vnstatd | ||
- | </ | ||
- | which should reply " | ||
- | |||
- | ===== Red Hat 6 ===== | ||
- | |||
- | Open a terminal and gain root permissions | ||
- | |||
- | < | ||
- | |||
- | Verify that root has been gained | ||
- | |||
- | < | ||
- | |||
- | which should reply " | ||
- | |||
- | Install needed development packages | ||
- | < | ||
- | yum install make gcc wget sqlite sqlite-devel | ||
- | </ | ||
- | |||
- | Get the latest release and extract it | ||
- | < | ||
- | cd /usr/src | ||
- | wget http:// | ||
- | tar zxvf vnstat-2.5.tar.gz | ||
- | </ | ||
- | |||
- | Compile and install the binaries | ||
- | < | ||
- | cd vnstat-2.5 | ||
- | ./configure --prefix=/ | ||
- | </ | ||
- | |||
- | Install the service files and start the daemon | ||
- | < | ||
- | cp -v examples/ | ||
- | chkconfig vnstat on | ||
- | service vnstat start | ||
- | </ | ||
- | |||
- | Verify that daemon process got started | ||
- | < | ||
- | pgrep -c vnstatd | ||
- | </ | ||
- | which should reply " |