linux centos nload,Centos 下实时查看网卡流量的工具 – nload-linux服务器应用-

本文介绍如何在CentOS环境下从源代码编译安装nload,并提供详细的配置及使用指南,包括实时查看网络流量的方法及各种参数的含义。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

nload 的官方网站为: http://www.roland-riegel.de/nload/

在 CentOS 下,nload

目前就只能基于源代码进行编译安装了。默认安装的 CentOS ,要编译安装 nload 时,可能还需要安装几个需要的

1

2

3

4

5

6

7

yum install gcc gcc-c++ ncurses-devel

wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz

tar xvf nload-0.7.4.tar.gz

cd nload-0.7.4

./configure

make

make install

完成后,nload 被安装在了

/usr/local/bin/nload 。

用图形方式查看实时流量:

1

nload -t 200 -i 1024 -o 128 -u H

查看第一网卡的流量情况,显示的是实时的流量图

1

nload eth0

同时查看多个

1

nload -m

效果是这样的:

a4c26d1e5885305701be709a3d33442f.png

参数说明:

Options:

-a period Sets the length in

seconds of the time window for average calculation. Default is

300.

-a period

设置在时间窗口平均计算秒的长度。默认值是300。

-i max_scaling Specifies the

100% in

kBit/s of the graph indicating the incoming bandwidth usage.

Ignored if max_scaling is 0 or the switch -m is given. Default is

10240.

-i max_scaling

指定了100%标记在图中的kbit /

s的指示传入的带宽使用率。如果max_scaling为0或开关-m时给予忽略。默认值是10240。

-m Show multiple devices at a

time; no traffic graphs.

-m 显示多个设备同时使用;没有

-o max_scaling Same as -i but

for the graph indicating the outgoing bandwidth usage. Default is

10240.

-o max_scaling

相同的AS-I,但对于曲线图,显示出

-t interval Determines the

refresh interval of the display in milliseconds. Default is

500.

-t interval

确定以毫秒为单位显示的刷新间隔。默认值是500。

-u h|b|k|m|g Sets the type of

unit used for the display of traffic numbers.

-u h|b|k|m|g 设置用于

H|B|K|M|G h: auto, b: Bit/s,

k: kBit/s, m: MBit/s

-U h|b|k|m|g Same as -u, but

for a total amount of (without

“/s”).

-U h|b|k|m|g

同-U,但是对于数据的总量(没有“/秒”)。

H|B|K|M|G Default is H.

devices Network devices to

use. Default is to use all

devices

例子: 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”键改变。

实时查看

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值