vergoh / vnstat

vnStat - a network traffic monitor for Linux and BSD
GNU General Public License v2.0
1.41k stars 120 forks source link

Centos9 failed to run after compilation #265

Open iloveuaa opened 4 hours ago

iloveuaa commented 4 hours ago

script:

wget https://humdi.net/vnstat/vnstat-latest.tar.gz
tar zxvf vnstat-latest.tar.gz
cd vnstat-*
./configure --prefix=/usr --sysconfdir=/etc && make -j16 && make install
cp -v examples/systemd/vnstat.service /etc/systemd/system/
sudo systemctl enable vnstat
sudo systemctl start vnstat

show: [root@150S1848 vnstat-2.12]# ps -ef|grep vnstat root 61450 18575 0 16:55 pts/0 00:00:00 grep --color=auto vnstat

centos7: In centos7, you can see the daemon process

iloveuaa commented 4 hours ago

image I executed sudo systemctl enable vnstat to generate vnstatd and then executed the corresponding service but it still did not run successfully.

iloveuaa commented 4 hours ago

image The first manual run will get stuck, then it will succeed after interruption and then execution again