Centos网络带宽验证与网络监控工具

来源:互联网 发布:全国68所网络教育学校 编辑:程序博客网 时间:2024/06/06 03:40
场景:并发测试,http请求到服务器的网络报文/网络包很大,怀疑到是否为网络带宽受限导致


1.centos网络带宽验证工具
1.1参考文章:speedtest-cli网络测速工具安装与使用  https://jingyan.baidu.com/article/0bc808fc5222bb1bd485b9e2.html

1.2.speedtest-cli使用截图:



2.网络监控图形化工具speedometer
2.1安装与使用 http://jaseywang.me/2013/02/27/speedometer-%E5%AE%89%E8%A3%85%E4%BD%BF%E7%94%A8/
2.2前置包安装
yum install -y unzip;wget -q http://excess.org/urwid/urwid-1.0.1.tar.gz;tar -zxvvf urwid-1.0.1.tar.gz;cd urwid-1.0.1;python setup.py install
问题:unable to execute gcc: No such file or directory
解决:https://www.2cto.com/kf/201112/113177.html
yum list | grep gcc;sudo yum install -y gcc.x86_64


2.3speedometer安装
官网下载镜像文件(http://excess.org/speedometer/->https://github.com/wardi/speedometer)unzip speedometer-master.zip;cd speedometer-master;python setup.py install
或者wget -q http://excess.org/speedometer/speedometer-2.8.tar.gz;tar -zxvvf speedometer-2.8.tar.gz;cd speedometer-2.8;cp speedometer.py /usr/local/bin/speedometer;chown root: /usr/local/bin/speedometer;chmod 755 /usr/local/bin/speedometer


2.4.speedometer使用截图:

speedometer -tx eth0 -rx eth0



3.网络监控工具vnstat使用截图




3.其他网络监控工具参考文章:http://os.51cto.com/art/201404/435279.htm Linux服务器上监控网络带宽的18个常用命令