An open API service indexing awesome lists of open source software.

https://github.com/helloh2o/govnstat

统计每个月VPS使用的流量,特别是AWS之类,防止流量溢出产生额外的费用
https://github.com/helloh2o/govnstat

Last synced: 3 months ago
JSON representation

统计每个月VPS使用的流量,特别是AWS之类,防止流量溢出产生额外的费用

Awesome Lists containing this project

README

          

# govnstat
统计每个月VPS使用的流量,特别是AWS之类,防止流量溢出产生额外的费用
## 使用 ##
1. VPS上先安装vnstat服务
2. 在运行go版本vnstat,当流量超出最大值,自动关机,建议采用service方式运行
3. 运行参数
```
Usage of ./vnstat:
-loop int
多少分钟检查检查一次流量使用情况
how many minutes to check loop (default 5)
-max float
最大允许使用的流量,单位GB
max gb traffic todo (default 999)
-p string
vnstat服务的参数
vnstat args (default "--json" 可选 "-m")
-ver int
vnstat的版本,低于2.0必须使用此参数 -ver 1
the version of vnstat (default 2)
```
### Release 可执行文件已在ubuntu测试 ###