Linux系统网速测速,Linux系统下的网络带宽测速
网络测速
speedtest
下载通过直接下载SpeedTest脚本,给权限运行脚本即可
[root@localhost ~]# curl -o speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
[root@localhost ~]# chmod +x speedtest-cli
[root@localhost ~]# ./speedtest-cli --share
Retrieving speedtest.net configuration...
Testing from Itace International Limited (103.41.124.83)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by i3D.net (Hong Kong) [0.00 km]: 8.013 ms
Testing download speed................................................................................
Download: 4.37 Mbit/s
Testing upload speed................................................................................................
Upload: 10.73 Mbit/s
Share results: http://www.speedtest.net/result/9551161855.png
[root@localhost ~]#
查看所有国内测试节点,并指定测试节点进行测试
[root@localhost ~]# ./speedtest-cli --list | grep China
1536) STC (Hong Kong, China) [0.00 km]
2993) Website Solution Limited (Hong Kong, China) [0.00 km]
32155) China Mobile Hong Kong (Hong Kong, Hong Kong) [0.00 km]
19036) SmarTone (Hong Kong, China) [0.00 km]
16192) ShenZhen Unicom (ShenZhen, China) [31.69 km]
4515) China Mobile,Guangdong (Shenzhen, China) [31.69 km]
32468) GMCC (ZHUHAI, China) [60.76 km]
26678) Guangzhou Unicom 5G (Guangzhou, China) [134.80 km]
6611) China Mobile,Guangdong (Guangzhou, China) [134.80 km]
27594) ChinaTelecom 5G (Guangzhou, China) [134.80 km]
15863) GX ChinaMobile (Nanning, China) [604.08 km]
5674) GX-Unicom (Nanning, China) [604.08 km]
27810) GX-Telecom (Nanning, China) [604.08 km]
26677) Changsha, Hunan Unicom (Zhuzhou, China) [628.90 km]
28491) China Mobile HuNan 5G (ChangSha, China) [669.76 km]
4870) Changsha, Hunan Unicom,Server1 (Changsha, China) [671.99 km]
28225) Hunan Telecom 5G (Changsha, China) [671.99 km]
......
[root@localhost ~]# ./speedtest-cli --server=6611 --share
Retrieving speedtest.net configuration...
Testing from Itace International Limited (103.41.124.83)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by China Mobile,Guangdong (Guangzhou) [134.80 km]: 688.751 ms
Testing download speed................................................................................
Download: 4.02 Mbit/s
Testing upload speed................................................................................................
Upload: 5.32 Mbit/s
Share results: http://www.speedtest.net/result/9551180382.png
[root@localhost ~]#
iperf
服务端与客户端 都要安装iperf工具
yum install -y iperf
[root@localhost ~]# wget -O /usr/lib/libiperf.so.0 https://iperf.fr/download/ubuntu/libiperf.so.0_3.1.3
[root@localhost ~]# wget -O /usr/bin/iperf3 https://iperf.fr/download/ubuntu/iperf3_3.1.3
[root@localhost ~]# chmod +x /usr/bin/iperf3
注:在CentOS 7下安装iperf3时可能会出现如下错误
iperf3: error while loading shared libraries: libiperf.so.0: cannot open shared object file: No such file or directory
一般情况下是因为wget了iperf3的动态链接库,而共享库未能及时更新,需要手动执行 ldconfig 命令以创建连接和缓存文件。
[root@localhost ~]# ldconfig
查看版本
[root@localhost ~]# iperf3 -v
iperf 3.1.3
Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64
Optional features available: CPU affinity setting, IPv6 flow label, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing
服务端启动服务,作为server:
iperf3 -s
客户端启动服务,作为client:
iperf3 -c -d -t 60
搭建网站-->网站根目录dd if 建立大文件index.html-->远程download测速wget/curl
清除用户登录成功记录:
[root@localhost root]# echo > /var/log/wtmp //此文件默认打开时乱码,可查到ip等信息
[root@localhost root]# last //此时即查不到用户登录信息
清除登陆系统失败的记录
[root@localhost root]# echo > /var/log/btmp //此文件默认打开时乱码,可查到登陆失败信息
[root@localhost root]# lastb //查不到登陆失败信息
清除历史记录:history -c
Linux系统网速测速,Linux系统下的网络带宽测速相关推荐
- 排球计分系统java_排球计分系统|网世技术排球计分系统下载v1.0官方版 - 欧普软件下载...
排球计分系统是一款免费的排球比赛计分软件,采用五局三胜制,可以准确的记录双方的得分情况,包括犯规.球员信息.全队得分等信息,支持多种设备输出,是日常排球比赛计分的好工具,有需要的朋友可以来本站下载! ...
- 网络测速linux,Linux系统下的网络带宽测速
网络测速 speedtest 下载通过直接下载SpeedTest脚本,给权限运行脚本即可 [root@localhost ~]# curl -o speedtest-cli https://raw.g ...
- Linux网络bug,Linux系统下的网络带宽测速
网络测速 speedtest 下载通过直接下载SpeedTest脚本,给权限运行脚本即可[root@localhost ~]# curl -o speedtest-cli https://raw.gi ...
- linux内网发现登录设备,LINUX 内网设备将服务映射到公网地址
环境描述: 1.设备A IP:192.168.0.2 位置: 上海 2.设备B IP:1.1.1.1 位置: 北京 设备A为甲方提供的实验室中的设备,设备B为乙方公网设备. 应甲方要求,需要在指定的设 ...
- linux没有网怎么改时间,linux下更改时间
linux下更改时间 卡饭网 梦在深巷 2013-07-19 16:43:14 修改linux的时间可以使用date指令 date命令的功能是显示和设置系统日期和时间. 输入date 查看目前系统时间 ...
- 网友暗讽鸿蒙系统,网图暗讽鸿蒙系统是安卓套皮,网友:键盘侠请弄清代码关系...
这图把大伙给逗乐了,鸿蒙怎么来的?是华为Lite OS把安卓吞了,就变成了鸿蒙OS. 鸿蒙一出来,才发现原来懂系统和代码的人这么多-比华为工程师更专业的人比比皆是,比如说鸿蒙系统800万行代码,其中包 ...
- linux百度网盘网络异常,Linux版本登录提示网络错误
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 下了最新的版本2.5.8,进行登录提示网络错误: ➜ APP ./WizNote-x86_64.AppImage [DEBUG] set server : ...
- linux外网sql server,在linux下连接MS SQL Server
在工作中需要在Linux服务器上访问MS SQL Server数据库,我马上就想到了适用ODBC接口进行实现,毕竟它的移植性更好. 首先需要选一种支持MS SQL Server的ODBC驱动,商业的不 ...
- linux 内网网络波动检测,Linux内网测试环境模拟网络丢包和延时
本文源自同事分享,在此基础之上做简要修改而成. Linux下有2traffic control(简写TC)和netem这2个工具.Netem 是 Linux 2.6 及以上内核版本提供的一个网络模拟功 ...
最新文章
- Linux 性能监控常用命令
- 场景法:基本流、备选流、构造场景
- Jzoj3931【NOIP2014day1官方数据】联合权值
- [转]SQL2005后的ROW_NUMBER()函数的应用
- dataframe常用处理
- opengl环境配置
- php导出csv数据在浏览器中输出提供下载或保存到文件的示例
- 引入了一个IO多路复用模型
- React开发(135):ant design学习指南之form中动态form新增删除
- python建立多台电脑共用的_用virtualenv建立多个Python独立虚拟开发环境
- php用魔术方法__call实现类函数重载
- QT: QTableWidget 表格中按钮槽函数 获取表格该按钮所在的行号信息
- Win10下ImageAI-gpu(tensorflow-gpu)环境安装(cuda及cuDNN自动安装)及实时对象检测
- c++用msxml6.0解析xml
- vmware启动sda assuming drive cache黑屏
- R语言销售分析计算某商品的连带或连带率指标函数
- 皮卡丘忠实粉丝之Web实现操作系统实验(进程调度+存储管理+死锁避免银行家算法)
- 再见了, 上海!我的程序生涯!
- 浅谈一下低频高频时阻抗匹配的重要知识
- sql查询成绩表中每一科成绩最高的分数以及这个学生的名字,学科名