- rust (^1.62)
- cargo (^1.62)
- git
-
Clone repository
git clone https://github.com/Hulxv/vnstat-server.git vns -
Build project
cd vns cargo build --release -p vns -p vnsd -
Setup
cd target/release mv vns vnsd /bin
Before using vnStat-server, you should know that there are two programs, one is used as a daemon and another is used as a utility to do some operations like controlling the HTTP server (see for more).
-
vnsd (vnStat Server Daemon)
It's a daemon that is used to run an HTTP server (RESTful API) that is used to control in vnStat and get its data by HTTP requests.
-
vns (vnStat Server cli utility)
a Utility used by the end-user to control in HTTP server efficiently and easily by connecting with vnsd by unix-socket.