1、linux实时流量工具iftop
常用两个方法:直接命令查看、安装个iftop查看;
直接命令查看
watch cat /proc/net/dev
安装iftop然后再查看
#yum -y install iftop
安装完成直接运行下方命令即可看到实时流量
#iftop
######################
安装epel以此解决找不到iftop
cd /usr/local/src
wget http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum clean all
yum makecache
2、linux服务器带宽测速speedtest-cli
通过全国多节点服务器测试自己服务器的带宽速度!
源码:https://github.com/sivel/speedtest-cli
安装部署及测试
#cd /home/setup #下载到这个目录
#wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py #下载
#chmod +x speedtest-cli #授权
#./speedtest-cli -h #帮助
#./speedtest-cli --list | grep China #查询国内测试服务器
#./speedtest-cli --server=4515 --share #4515 是服务ID