Centos 安装 nload (流量监控)
QQ交流群:64655993
1、系统安装基本工具
[root@localhost ~]# yum install -y gcc gcc-c++ make flex byacc libpcap ncurses-devel libpcap-devel
2、下载nload
[root@localhost ~]# cd /opt/
[root@localhost opt]# wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
3、解压工具包
[root@localhost opt]# tar zxvf nload-0.7.4.tar.gz
4、进入路径 /opt/nload-0.7.4
[root@localhost opt]# cd nload-0.7.4
5、编译
[root@localhost nload-0.7.4]# ./configure
6、安装
[root@localhost nload-0.7.4]# make && make install
7、使用
[root@localhost nload-0.7.4]# nload
8、退出
Ctrl + C
9、说明
查看帮助
nload -h
Options:
-a period Sets the length in seconds of the time window for average calculation.
平均计算时间长度
Default is 300.
-i max_scaling Specifies the 100% mark in kBit/s of the graph indicating the
incoming bandwidth usage. Ignored if max_scaling is 0 or the
switch -m is given.
指定入口流量最大值 单位是kBit/s
Default is 10240.
-m Show multiple devices at a time; no traffic graphs.
同时显示多个设备统计信息
-o max_scaling Same as -i but for the graph indicating the outgoing bandwidth
usage.
和-i相同,但是是出口流量
Default is 10240.
-t interval Determines the refresh interval of the display in milliseconds.
刷新间隔
Default is 500.
-u h|b|k|m|g Sets the type of unit used for the display of traffic numbers.
H|B|K|M|G h: auto, b: Bit/s, k: kBit/s, m: MBit/s etc.
H: auto, B: Byte/s, K: kByte/s, M: MByte/s etc.
显示单位
Default is h.
-U h|b|k|m|g Same as -u, but for a total amount of data (without "/s").
H|B|K|M|G Default is H.
和-u相同,但是为总流量
devices Network devices to use.
指定网卡
Default is to use all auto-detected devices.
--help
-h Print this help.
example: nload -t 200 -i 1024 -o 128 -U M
The options above can also be changed at run time by pressing the 'F2' key.
运行时使用F2可以查看此页
————————————————
版权声明:本文为CSDN博主「一花一世界~」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/llwy1428/article/details/85156119
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2016-09-23 项目经理面试中可能遇到的问题(持续更新)
2016-09-23 oracle面试