User Tools

Site Tools


vnstat:install:in_redhat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 'root' account or user with admin permissions 
-  - 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 
- 
-<code>su -</code> 
- 
-Verify that root has been gained 
- 
-<code>whoami</code> 
- 
-which should reply "root". 
- 
-Install needed development packages 
-<code> 
-yum install make gcc wget sqlite sqlite-devel 
-</code> 
- 
-Get the latest release and extract it 
-<code> 
-cd /usr/src 
-wget http://humdi.net/vnstat/vnstat-2.5.tar.gz 
-tar zxvf vnstat-2.5.tar.gz 
-</code> 
- 
-Compile and install the binaries 
-<code> 
-cd vnstat-2.5 
-./configure --prefix=/usr --sysconfdir=/etc && make && make install 
-</code> 
- 
-Install the service files and start the daemon 
-<code> 
-cp -v examples/systemd/vnstat.service /etc/systemd/system/ 
-systemctl enable vnstat 
-systemctl start vnstat 
-</code> 
- 
-Verify that daemon process got started 
-<code> 
-pgrep -c vnstatd 
-</code> 
-which should reply "1". A reply of "0" indicates that the process has failed to start. 
- 
-===== Red Hat 6 ===== 
- 
-Open a terminal and gain root permissions 
- 
-<code>su -</code> 
- 
-Verify that root has been gained 
- 
-<code>whoami</code> 
- 
-which should reply "root". 
- 
-Install needed development packages 
-<code> 
-yum install make gcc wget sqlite sqlite-devel 
-</code> 
- 
-Get the latest release and extract it 
-<code> 
-cd /usr/src 
-wget http://humdi.net/vnstat/vnstat-2.5.tar.gz 
-tar zxvf vnstat-2.5.tar.gz 
-</code> 
- 
-Compile and install the binaries 
-<code> 
-cd vnstat-2.5 
-./configure --prefix=/usr --sysconfdir=/etc && make && make install 
-</code> 
- 
-Install the service files and start the daemon 
-<code> 
-cp -v examples/init.d/centos/vnstat /etc/init.d/ 
-chkconfig vnstat on 
-service vnstat start 
-</code> 
- 
-Verify that daemon process got started 
-<code> 
-pgrep -c vnstatd 
-</code> 
-which should reply "1". A reply of "0" indicates that the process has failed to start. 
vnstat/install/in_redhat.txt ยท Last modified: 22.10.2022 15:30 (external edit)