百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> Linux网络流量实时监控工具nload安装使用
分享文章到:

Linux网络流量实时监控工具nload安装使用

发布时间:01/15 来源: 浏览: 关键词:
nload实时查看linux服务器网络流量的工具了,这款工具可以让我们知道服务器流量的一个使用情况,下面我们来看看这款工具的一个安装与使用步骤

一、介绍

Linux下的nload是一个很好用的工具,功能也很强,只是相对单一,只能查看总的流量。可以实时地监控网卡的流量,分Incoming,Outgoing两部分,也就是流入与流出的流量

同时统计当前,平均,最小,最大,总流量的值 官网:http://www.roland-riegel.de/nload/index.html

二、安装及使用

1.安装配置

[root@lookings src]# wget wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz //下载文件
[root@lookings src]# tar -zxvf nload-0.7.4.tar.gz //解压文件
[root@lookings src]# cd nload-0.7.4 //进入解压目录
[root@lookings nload-0.7.4]# ./configure //生成makefile
[root@lookings nload-0.7.4]# make && make install //编译及安装


在 Debian 或者 Ubuntu Linux 上安装 nload
键入 apt-get 命令:

1.$ sudo apt-get install nload
在 FreeBSD 操作系统上安装 nload
通过 port 安装 nload,键入:

1.# cd /usr/ports/net/nload/ && make install clean
或者添加包

1.# pkg install net/nload
在 OpenBSD 操作系统上安装 nload
键入下列命令:

1.$ sudo pkg_add -i nload
在类 Unix 操作系统上从源代码安装 nload
首先,使用 wget 或者 curl 命令获取源代码:

1.$ cd /tmp
2.$ wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
使用 tar 命令解压缩名为 nload-0.7.4.tar.gz 的 tar 包,键入:

1.$ tar xvf nload-0.7.4.tar.gz
使用 cd 命令进入 nload 源代码所在目录:

1.$ cd nload*
然后键入 ./configure 为你的操作系统配置安装包:

1.$ sh ./configure
或者

1.$ ./configure
运行 configure 命令需要一点时间。完成后,使用 make 命令编译 nload:

1.$ make
最后,键入 make install 命令以 root 用户身份安装 nload 应用程序和相关文件:

1.$ sudo make install
或者

1.# make install

2.使用

常用参数:

nload -h 可以看到使用帮助
nload -m //查看所有网卡实时流量
nload eth0 //查看指定驱动网卡的流量,现在指定的是eth0
nload -u k|m|g //指定流量显示的单位

如安装时提示下面的问题

configure: error: ncurses library or development files not found. ncurses is required for nload.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.

用 yum install -y ncurses-devel 即可解决

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有7人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板