使用speed检查Centos服务器带宽最大值
2023-05-11 3358因为命令是python的包,所以,需要先下载一个python,用pip下载次命令。命令如下;
yum -y install python-pip
#等待安装完成后执行:
pip install speedtest-cli
安装完成后输入 speedtest-cli 即可开始检查带宽上下行最大值。(注意运行脚本的时候不要下载或上传,否则检查会低于实际值)
root@idcy:[/root]speedtest-cli
Retrieving speedtest.net configuration...
Testing from China Unicom (125.119.20.3)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Telecom TianJin-5G (TianJin) [123.83 km]: 47.213 ms
Testing download speed................................................................................
Download: 18.59 Mbit/s
Testing upload speed................................................................................................
Upload: 19.58 Mbit/s