I. 安装
tar -xf nload-0.7.4.tar.gz
cd nload-0.7.4
make && make install

II. 使用


nload -h

-a period Sets the length in seconds of the time window for average

            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

            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.


devices Network devices to use.

            Default is to use all auto-detected devices.

-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.

nload -t 200 -i 1024 -o 128 -U M



**nload eth0
nload -m**


[root@localhost 桌面]# wget

--2016-02-17 15:46:46--
正在解析主机 (
正在连接 (||:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:151005 (147K) [application/x-gzip]
正在保存至: “nload-0.7.4.tar.gz”

100%[======================================>] 151,005 2.59KB/s 用时 2m 51s

2016-02-17 15:49:41 (883 B/s) - 已保存 “nload-0.7.4.tar.gz” [151005/151005])

[root@localhost 桌面]# tar -xf nload-0.7.4.tar.gz
[root@localhost 桌面]# cd nload-0.7.4
[root@localhost nload-0.7.4]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/root/桌面/nload-0.7.4':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
[root@localhost nload-0.7.4]# make && make install
make: * 没有指明目标并且找不到 makefile。 停止。
[root@localhost nload-0.7.4]# yum install gcc gcc-c++ kernel-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base:
  • extras:
  • updates:

--> 正在检查事务
---> 软件包 gcc.x86_64. 将被 安装
--> 正在处理依赖关系 libgomp = 4.8.5-4.el7,它被软件包 gcc-4.8.5-4.el7.x86_64 需要
--> 正在处理依赖关系 cpp = 4.8.5-4.el7,它被软件包 gcc-4.8.5-4.el7.x86_64 需要
--> 正在处理依赖关系 libgcc >= 4.8.5-4.el7,它被软件包 gcc-4.8.5-4.el7.x86_64 需要
--> 正在处理依赖关系,它被软件包 gcc-4.8.5-4.el7.x86_64 需要
---> 软件包 gcc-c++.x86_64. 将被 安装
--> 正在处理依赖关系 libstdc++-devel = 4.8.5-4.el7,它被软件包 gcc-c++-4.8.5-4.el7.x86_64 需要
--> 正在处理依赖关系 libstdc++ = 4.8.5-4.el7,它被软件包 gcc-c++-4.8.5-4.el7.x86_64 需要
---> 软件包 kernel-devel.x86_64. 将被 安装
--> 正在检查事务
---> 软件包 cpp.x86_64. 将被 安装
---> 软件包 libgcc.x86_64. 将被 升级
---> 软件包 libgcc.x86_64. 将被 更新
---> 软件包 libgomp.x86_64. 将被 升级
---> 软件包 libgomp.x86_64. 将被 更新
---> 软件包 libmpc.x86_64. 将被 安装
---> 软件包 libstdc++.x86_64. 将被 升级
---> 软件包 libstdc++.x86_64. 将被 更新
---> 软件包 libstdc++-devel.x86_64. 将被 安装
--> 解决依赖关系完成



Package 架构 版本 源 大小

gcc x86_64 4.8.5-4.el7 base 16 M
gcc-c++ x86_64 4.8.5-4.el7 base 7.2 M
kernel-devel x86_64 3.10.0-327.10.1.el7 updates 11 M
cpp x86_64 4.8.5-4.el7 base 5.9 M
libmpc x86_64 1.0.1-3.el7 base 51 k
libstdc++-devel x86_64 4.8.5-4.el7 base 1.5 M
libgcc x86_64 4.8.5-4.el7 base 95 k
libgomp x86_64 4.8.5-4.el7 base 130 k
libstdc++ x86_64 4.8.5-4.el7 base 298 k


安装 3 软件包 (+3 依赖软件包)
升级 ( 3 依赖软件包)

总下载量:42 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
(1/9): cpp-4.8.5-4.el7.x86_64.rpm | 5.9 MB 00:02
(2/9): gcc-c++-4.8.5-4.el7.x86_64.rpm | 7.2 MB 00:07
(3/9): libgcc-4.8.5-4.el7.x86_64.rpm | 95 kB 00:00
(4/9): libgomp-4.8.5-4.el7.x86_64.rpm | 130 kB 00:00
(5/9): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00
(6/9): libstdc++-4.8.5-4.el7.x86_64.rpm | 298 kB 00:00
(7/9): libstdc++-devel-4.8.5-4.el7.x86_64.rpm | 1.5 MB 00:01
(8/9): kernel-devel-3.10.0-327.10.1.el7.x86_64.rpm | 11 MB 00:25

(9/9): gcc-4.8.5-4.el7.x86_64.rpm | 16 MB 00:30

总计 1.4 MB/s | 42 MB 00:30
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : libmpc-1.0.1-3.el7.x86_64 1/12
正在更新 : libgcc-4.8.5-4.el7.x86_64 2/12
正在更新 : libstdc++-4.8.5-4.el7.x86_64 3/12
正在安装 : libstdc++-devel-4.8.5-4.el7.x86_64 4/12
正在安装 : cpp-4.8.5-4.el7.x86_64 5/12
正在更新 : libgomp-4.8.5-4.el7.x86_64 6/12
正在安装 : gcc-4.8.5-4.el7.x86_64 7/12
正在安装 : gcc-c++-4.8.5-4.el7.x86_64 8/12
正在安装 : kernel-devel-3.10.0-327.10.1.el7.x86_64 9/12
清理 : libstdc++-4.8.3-9.el7.x86_64 10/12
清理 : libgcc-4.8.3-9.el7.x86_64 11/12
清理 : libgomp-4.8.3-9.el7.x86_64 12/12
验证中 : libstdc++-4.8.5-4.el7.x86_64 1/12
验证中 : libgomp-4.8.5-4.el7.x86_64 2/12
验证中 : gcc-4.8.5-4.el7.x86_64 3/12
验证中 : cpp-4.8.5-4.el7.x86_64 4/12
验证中 : kernel-devel-3.10.0-327.10.1.el7.x86_64 5/12
验证中 : libgcc-4.8.5-4.el7.x86_64 6/12
验证中 : libstdc++-devel-4.8.5-4.el7.x86_64 7/12
验证中 : libmpc-1.0.1-3.el7.x86_64 8/12
验证中 : gcc-c++-4.8.5-4.el7.x86_64 9/12
验证中 : libgcc-4.8.3-9.el7.x86_64 10/12
验证中 : libgomp-4.8.3-9.el7.x86_64 11/12
验证中 : libstdc++-4.8.3-9.el7.x86_64 12/12

gcc.x86_64 0:4.8.5-4.el7 gcc-c++.x86_64 0:4.8.5-4.el7
kernel-devel.x86_64 0:3.10.0-327.10.1.el7

cpp.x86_64 0:4.8.5-4.el7 libmpc.x86_64 0:1.0.1-3.el7
libstdc++-devel.x86_64 0:4.8.5-4.el7

libgcc.x86_64 0:4.8.5-4.el7 libgomp.x86_64 0:4.8.5-4.el7
libstdc++.x86_64 0:4.8.5-4.el7

[root@localhost nload-0.7.4]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for memset... yes
checking for initscr in -lncurses... no
checking for new_form in -lform... no
checking for ANSI C header files... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... yes
checking for stdlib.h... yes
checking string.h usability... yes
checking string.h presence... yes
checking for string.h... yes
checking unistd.h usability... yes
checking unistd.h presence... yes
checking for unistd.h... yes
checking curses.h usability... no
checking curses.h presence... no
checking for curses.h... no
checking form.h usability... no
checking form.h presence... no
checking for form.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
configure: error: ncurses library or development files not found. ncurses is required for nload.
[root@localhost nload-0.7.4]# yum -y install ncurses*
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base:
  • extras:
  • updates:
    软件包 ncurses-5.9-13.20130511.el7.x86_64 已安装并且是最新版本

软件包 ncurses-libs-5.9-13.20130511.el7.x86_64 已安装并且是最新版本
软件包 ncurses-base-5.9-13.20130511.el7.noarch 已安装并且是最新版本
--> 正在检查事务
---> 软件包 ncurses-devel.x86_64.0.5.9-13.20130511.el7 将被 安装
---> 软件包 ncurses-static.x86_64.0.5.9-13.20130511.el7 将被 安装
---> 软件包 ncurses-term.noarch.0.5.9-13.20130511.el7 将被 安装
--> 解决依赖关系完成



Package 架构 版本 源 大小

ncurses-devel x86_64 5.9-13.20130511.el7 base 713 k
ncurses-static x86_64 5.9-13.20130511.el7 base 492 k
ncurses-term noarch 5.9-13.20130511.el7 base 543 k


安装 3 软件包

总下载量:1.7 M
安装大小:7.7 M
Downloading packages:
(1/3): ncurses-static-5.9-13.20130511.el7.x86_64.rpm | 492 kB 00:00
(2/3): ncurses-devel-5.9-13.20130511.el7.x86_64.rpm | 713 kB 00:00

(3/3): ncurses-term-5.9-13.20130511.el7.noarch.rpm | 543 kB 00:00

总计 1.5 MB/s | 1.7 MB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : ncurses-devel-5.9-13.20130511.el7.x86_64 1/3
正在安装 : ncurses-static-5.9-13.20130511.el7.x86_64 2/3
正在安装 : ncurses-term-5.9-13.20130511.el7.noarch 3/3
验证中 : ncurses-term-5.9-13.20130511.el7.noarch 1/3
验证中 : ncurses-devel-5.9-13.20130511.el7.x86_64 2/3
验证中 : ncurses-static-5.9-13.20130511.el7.x86_64 3/3

ncurses-devel.x86_64 0:5.9-13.20130511.el7
ncurses-static.x86_64 0:5.9-13.20130511.el7
ncurses-term.noarch 0:5.9-13.20130511.el7


[root@localhost nload-0.7.4]# make && make install
make all-recursive
make[1]: 进入目录“/root/桌面/nload-0.7.4”
Making all in docs
make[2]: 进入目录“/root/桌面/nload-0.7.4/docs”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/root/桌面/nload-0.7.4/docs”
Making all in src
make[2]: 进入目录“/root/桌面/nload-0.7.4/src”
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT device.o -MD -MP -MF .deps/device.Tpo -c -o device.o device.cpp
mv -f .deps/device.Tpo .deps/device.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT devreader.o -MD -MP -MF .deps/devreader.Tpo -c -o devreader.o devreader.cpp
mv -f .deps/devreader.Tpo .deps/devreader.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT devreaderfactory.o -MD -MP -MF .deps/devreaderfactory.Tpo -c -o devreaderfactory.o devreaderfactory.cpp
mv -f .deps/devreaderfactory.Tpo .deps/devreaderfactory.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT form_field.o -MD -MP -MF .deps/form_field.Tpo -c -o form_field.o form_field.cpp
mv -f .deps/form_field.Tpo .deps/form_field.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT graph.o -MD -MP -MF .deps/graph.Tpo -c -o graph.o graph.cpp
mv -f .deps/graph.Tpo .deps/graph.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
mv -f .deps/main.Tpo .deps/main.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT opt_window.o -MD -MP -MF .deps/opt_window.Tpo -c -o opt_window.o opt_window.cpp
mv -f .deps/opt_window.Tpo .deps/opt_window.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT screen.o -MD -MP -MF .deps/screen.Tpo -c -o screen.o screen.cpp
screen.cpp: 在静态成员函数‘static int Screen::width()’中:
screen.cpp:28:9: 警告:variable ‘height’ set but not used [-Wunused-but-set-variable]

 int height;

screen.cpp: 在静态成员函数‘static int Screen::x()’中:
screen.cpp:44:9: 警告:variable ‘y’ set but not used [-Wunused-but-set-variable]

 int y;

mv -f .deps/screen.Tpo .deps/screen.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT setting.o -MD -MP -MF .deps/setting.Tpo -c -o setting.o setting.cpp
mv -f .deps/setting.Tpo .deps/setting.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT settingfilter.o -MD -MP -MF .deps/settingfilter.Tpo -c -o settingfilter.o settingfilter.cpp
mv -f .deps/settingfilter.Tpo .deps/settingfilter.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT settingstore.o -MD -MP -MF .deps/settingstore.Tpo -c -o settingstore.o settingstore.cpp
mv -f .deps/settingstore.Tpo .deps/settingstore.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT statistics.o -MD -MP -MF .deps/statistics.Tpo -c -o statistics.o statistics.cpp
mv -f .deps/statistics.Tpo .deps/statistics.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT stringutils.o -MD -MP -MF .deps/stringutils.Tpo -c -o stringutils.o stringutils.cpp
mv -f .deps/stringutils.Tpo .deps/stringutils.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT traffic_window.o -MD -MP -MF .deps/traffic_window.Tpo -c -o traffic_window.o traffic_window.cpp
mv -f .deps/traffic_window.Tpo .deps/traffic_window.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT window.o -MD -MP -MF .deps/window.Tpo -c -o window.o window.cpp
window.cpp: 在成员函数‘virtual int Window::getWidth()’中:
window.cpp:130:16: 警告:variable ‘height’ set but not used [-Wunused-but-set-variable]

 int width, height;

window.cpp: 在成员函数‘virtual int Window::getLeft()’中:
window.cpp:154:12: 警告:variable ‘y’ set but not used [-Wunused-but-set-variable]

 int x, y;

window.cpp: 在成员函数‘virtual int Window::getX()’中:
window.cpp:178:12: 警告:variable ‘y’ set but not used [-Wunused-but-set-variable]

 int x, y;

mv -f .deps/window.Tpo .deps/window.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT devreader-linux.o -MD -MP -MF .deps/devreader-linux.Tpo -c -o devreader-linux.o devreader-linux.cpp
mv -f .deps/devreader-linux.Tpo .deps/devreader-linux.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT devreader-linux-proc.o -MD -MP -MF .deps/devreader-linux-proc.Tpo -c -o devreader-linux-proc.o devreader-linux-proc.cpp
mv -f .deps/devreader-linux-proc.Tpo .deps/devreader-linux-proc.Po
g++ -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -Wall -MT devreader-linux-sys.o -MD -MP -MF .deps/devreader-linux-sys.Tpo -c -o devreader-linux-sys.o devreader-linux-sys.cpp
mv -f .deps/devreader-linux-sys.Tpo .deps/devreader-linux-sys.Po
g++ -g -O2 -Wall -s -o nload device.o devreader.o devreaderfactory.o form_field.o graph.o main.o opt_window.o screen.o setting.o settingfilter.o settingstore.o statistics.o stringutils.o traffic_window.o window.o devreader-linux.o devreader-linux-proc.o devreader-linux-sys.o -lform -lncurses
make[2]: 离开目录“/root/桌面/nload-0.7.4/src”
make[2]: 进入目录“/root/桌面/nload-0.7.4”
make[2]: 离开目录“/root/桌面/nload-0.7.4”
make[1]: 离开目录“/root/桌面/nload-0.7.4”
Making install in docs
make[1]: 进入目录“/root/桌面/nload-0.7.4/docs”
/bin/sh /root/桌面/nload-0.7.4/install-sh -d /usr/local/share/man/man1
/usr/bin/install -c -m 644 ../docs/nload.1 /usr/local/share/man/man1
gzip -f /usr/local/share/man/man1/nload.1
make[1]: 离开目录“/root/桌面/nload-0.7.4/docs”
Making install in src
make[1]: 进入目录“/root/桌面/nload-0.7.4/src”
make[2]: 进入目录“/root/桌面/nload-0.7.4/src”
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c nload '/usr/local/bin'
make[2]: 对“install-data-am”无需做任何事。
make[2]: 离开目录“/root/桌面/nload-0.7.4/src”
make[1]: 离开目录“/root/桌面/nload-0.7.4/src”
make[1]: 进入目录“/root/桌面/nload-0.7.4”
make[2]: 进入目录“/root/桌面/nload-0.7.4”
make[2]: 对“install-exec-am”无需做任何事。
make[2]: 对“install-data-am”无需做任何事。
make[2]: 离开目录“/root/桌面/nload-0.7.4”
make[1]: 离开目录“/root/桌面/nload-0.7.4”

[root@localhost 桌面]# nload -t 200 -i 1024 -o 128 -U M


黑公网安备 23010302001330 黑ICP备16006342号

Copyright © 2005 淘主机 , All Rights Reserved

淘主机供应商:WHMCS管理系统金盾防火墙阿里云VEDNS 安全软件推荐: 服务器安全狗