vnstat 统计 VPS 流量

安装

apt install -y vnstat


运行一段时间后,
不带参数查看默认网卡流量

vnstat



如果你有多个网卡, 可以用 -i 参数指定要查询的网卡.

vnstat -i eth0


其中网卡的名字可以用 ip a 查询

ip a


按小时查询流量

vnstat -h


root@fuckgfw:~/kplayer# vnstat -h

 eth0  /  hourly

         hour        rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     2023-07-16
         22:00    343.09 MiB |  231.46 MiB |  574.55 MiB |    1.34 Mbit/s
         23:00    330.92 MiB |   79.23 MiB |  410.15 MiB |  955.72 kbit/s
     2023-07-17
         00:00    331.14 MiB |  197.16 MiB |  528.29 MiB |    1.23 Mbit/s
         01:00    315.96 MiB |  236.67 MiB |  552.63 MiB |    1.29 Mbit/s
         02:00    339.39 MiB |  233.83 MiB |  573.22 MiB |    1.34 Mbit/s
         03:00    301.38 MiB |  236.07 MiB |  537.46 MiB |    1.25 Mbit/s
         04:00    104.94 MiB |   73.34 MiB |  178.28 MiB |    1.25 Mbit/s
     ------------------------+-------------+-------------+---------------



评论

The Hot3 in Last 30 Days

RackNerd VPSXray Reality梯子 年付 $10.98 1G端口 3T流量 17G存储 1GB内存

丐版VPS 搭酒馆SillyTavern 使用Google Gemini免费API 和AI对话第一个故事

重装VPS系统时, 备份和恢复翻墙软件的配置文件 caddy v2ray xray hysteria2 / Caddyfile config.json config.yaml 域名证书