网络测速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系统下的网络带宽测速相关推荐
- Linux网络bug,Linux系统下的网络带宽测速
网络测速 speedtest 下载通过直接下载SpeedTest脚本,给权限运行脚本即可[root@localhost ~]# curl -o speedtest-cli https://raw.gi ...
- Linux系统网速测速,Linux系统下的网络带宽测速
网络测速 speedtest 下载通过直接下载SpeedTest脚本,给权限运行脚本即可 [root@localhost ~]# curl -o speedtest-cli https://raw.g ...
- 0网卡开启_中标麒麟Linux v7系统下设置双网卡bond或team绑定详细过程
中标麒麟Linux v7系统下设置双网卡bond或team绑定详细过程.所谓bond,就是把多个物理网卡绑定成一个逻辑网卡,使用同一个IP工作,在增加带宽的同时也可以提高冗余性,一般使用较多的就是来提 ...
- Linux/Unix系统下nginx+php安装简明教程
本文转载自Linux/Unix系统下nginx+php安装简明教程,请保留转载信息~ 一.安装nginx: 1. 安装pcre库,nginx的rewrite模板需用到pcre库: mkdir -p / ...
- 在win7中访问删除linux硬盘分区,win7和linux双系统下,删除linux不能启动win7的解决方法...
win7和linux双系统下,删除linux不能启动win7的解决方法 (6页) 本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦! 19.90 积分 双系统下删除 ...
- windows 7编辑启动菜单 bcdedit linux,windows7系统下删除wubi安装的ubuntu启动项使用命令bcdedit解决...
windows7系统下删除wubi安装的ubuntu启动项使用命令bcdedit解决 发布时间:2013-05-28 15:19:31 作者:佚名 我要评论 前不久用笔记本通过wubi安装Ub ...
- 安卓9.0刷linux,Ubuntu系统下编译Android 9.0系统
8种机械键盘轴体对比 本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选? 前言 在Ubuntu系统下编译Android系统.哎呀不知道是不是换了新电脑的缘故,这次编译居然从安装JDK和配置环境下 ...
- linux相关系统下qtcreator调试程序
作者本人初次接触linux 相关系统的QT(IDE)时,没有想象中的得心应手,调试较长的对象数据显得有点无奈(超出显示范围后数据变成-,打开数据查看也比较头疼(一行显示一个字节数据)).经过多个项目的 ...
- linux CentOS 系统下如何将php和mysql命令加入到环境变量中
在Linux CentOS系统上安装完php和MySQL后,为了使用方便,需要将php和mysql命令加到系统命令中,如果在没有添加到环境变量之前,执行"php -v"命令查看当前 ...
最新文章
- Pandas判断dataframe是否为空
- 在MSN、QQ群、论坛上提问的决窍
- linux 空文件 sed 不能写入数据
- [crypto]-50-base64_encode和base64_decode的C语言实现
- alxc tool 报错数组超出了界限_代码审计之报错信息泄露与字符串截断
- Opencv 图片 读取,显示,保存基本操作
- jquery-easyui中表格的行编辑功能
- 开源Math.NET基础数学类库使用(03)C#解析Matlab的mat格式
- jsp 如何上传文件到服务器上,如何使用JSP / Servlet将文件上传到服务器?
- Web学习篇之---html基础知识(一)
- ModifyStyle, ModifyStyleEx
- 图像二值化——最大类间方差法(Ostu,大津法)
- GIS开发:客户端控制的地图样式
- HTML+JS 实现 input 框回车事件
- 【PHP】解决数据库查询出来的中文内容显示为问号“??”
- iOS 上传App Store 报 ITMS-90096错误处理方法
- Android平台所支持的API级别
- 移动应用开发技术选择六要素
- vscode使用ssh连接远程Ubuntu服务器(记录)
- 锐龙9 7845HX 和锐龙9 6900HX选哪个 r9 7845HX 和6900HX差距
热门文章
- 2020 GDUT Rating Contest I (Div. 2) A - Cow Gymnastics 题解
- 科创板|赛诺医疗申联生物海天瑞声3公司本月31日上会
- 洪荒:不周山上的绝世大能(三)
- 局域网内Linux服务器时间同步
- 理工科英文文献阅读and如何做好科研(北邮教授采访稿)
- UE4 打包后查看日志
- Lind.DDD.Domain领域模型介绍
- 易语言多线程大漠多线程模板脚本延时
- 7-3 接话茬 (100分)(简洁易懂的代码含思路分析)
- 七夕节送男朋友的礼物推荐,颜值和实用并存的男友礼物清单