云梦
www.htcp.net

Speedtest 使用中国的服务器节点进行测试

有时候我们需要测试我们使用的这台服务器到国内的速度。

安装 speedtest

CentOS 7:

yum install python-pip speedtest-cli

Debian 8+:

apt install python-pip speedtest-cli

使用 speedtest

安装完成以后,我们便可直接使用 speedtest 命令,让 speedtest 自动选取理论距离最近的服务器测速节点进行测试。

speedtest 可以使用 speedtest-cli --list 命令获取 speedtest 的所有测试节点,我们可以配合 grep 命令,得到中国的节点。例如:

speedtest-cli --list | grep China

当然,我们可单独指定一个 speedtest 的测试节点,进行测试,例如:

speedtest-cli --server 5475

Speedtest 在中国的所有节点如下:
(请注意节点可能会增减,以下为 2017-11-24 的节点)

root@hk-a-02:~# speedtest-cli --list |grep China
 2993) Website Solution Limited (Hong Kong, China) [4.87 km]
10267) Interoute VDC (Hong Kong, China) [4.87 km]
12990) QTS Data Centers (Hong Kong, China) [4.87 km]
 1536) STC (Hong Kong, China) [4.87 km]
 8170) Atombase Global Datamation (Hong Kong, China) [4.87 km]
 6852) FPT Telecom (Chai Wan, China) [9.55 km]
 5506) china unicom (Xiamen, China) [467.91 km]
10305) GX-Telecom (Nanning, China) [601.83 km]
 4870) Changsha, Hunan Unicom (Changsha, China) [667.20 km]
 6132) ChinaTelecom.Hunan (Changsha, China) [667.20 km]
 4884) China Unicom FuJian (Fuzhou, China) [671.21 km]
 7230) China Unicom.JiangXi Co.,Ltd (Nanchang, China) [731.74 km]
 7643) China Telecom.JiangXi.Network Center (Nanchang, China) [731.74 km]
 5097) Chinaunicom.jx (Nanchang, China) [731.74 km]
14566) China Network Systems(CNS) (Taipei, Taiwan, Province of China) [814.27 km]
 5485) China Unicom,Hubei Branch (Wuhan, China) [922.16 km]
 4647) China Mobile Group Zhejiang Co.,Ltd (Hangzhou, China) [1068.68 km]
 6435) china Telecom hubei branch (Xiangyang, China) [1099.66 km]
 5726) China Unicom Chong Qing Branch (Chongqing, China) [1107.54 km]
 5530) CCN (Chongqing, China) [1107.54 km]
 4377) China Mobile Group Anhui Co.,Ltd (Hefei, China) [1108.86 km]
 5724) ChinaUnicom (Hefei, China) [1108.86 km]
 6715) China Mobile Group Zhejiang Co., Ltd. (Ningbo, China) [1119.96 km]
 5316) China Telecom JiangSu Branch (Nanjing, China) [1176.95 km]
 5446) CHINA UNICOM JIANGSU COMPANY (Nanjing, China) [1176.95 km]
13704) China Unicom (Nanjing, China) [1179.14 km]
 5103) Yunnan Chinaunicom (Kunming, China) [1207.32 km]
 6168) China Telecom (Kunming, China) [1207.32 km]
 3633) China Telecom (Shanghai, China) [1229.63 km]
 5083) Shanghai Branch, China Unicom (Shanghai, China) [1229.63 km]
 5396) China Telecom JiangSu Branch (Suzhou, China) [1363.98 km]
 4575) China Mobile Group Sichuan (Chengdu, China) [1367.38 km]
11444) University of Electronic Science and Technology of China (Chengdu, China) [1367.38 km]
 4624) ChinaTelecom (Chengdu, China) [1367.38 km]
 2461) China Unicom (Chengdu, China) [1367.38 km]
 5131) China unicom henan branch (Zhengzhou, China) [1388.09 km]
 4595) China Telecom HeNan Branch (Zhengzhou, China) [1388.09 km]
 4863) Xi'an branch,Chinaunicom (Xi'an, China) [1426.78 km]
 5039) China unicom Jinan branch (Jinan, China) [1621.62 km]
12538) SHANDONG UNICOM (Jinan, China) [1621.62 km]
12868) China unicom shanxi branch (Taiyuan, China) [1738.90 km]
 5509) Chinaunicom Ningxia branch (Ningxia, China) [1804.11 km]
 3973) China Telecom (Lanzhou, China) [1826.19 km]
 4690) China Unicom Lanzhou Branch Co.Ltd (Lanzhou, China) [1826.19 km]
 5475) China Unicom (Tianjin, China) [1894.76 km]
 4751) Beijing Telecom (Beijing, China) [1970.97 km]
 6302) Beijing Fiber City (Beijing, China) [1970.97 km]
 5145) Beijing Unicom (Beijing, China) [1970.97 km]
 5505) Beijing Broadband Network (Beijing, China) [1970.97 km]
 5992) Qinghai China Unicom (Xining, China) [1991.13 km]
12512) nmzl (Huhehaote, China) [2075.08 km]
 5017) China Unicom,Liaoning Branch (Shenyang, China) [2344.72 km]
 9484) China Unicom (Changchun, China) [2610.73 km]
10742) Changchun Unicom (Changchun, China) [2610.73 km]
 5460) China Unicom Heilongjiang Branch (Harbin, China) [2842.92 km]
 6144) xjunicom (Urumqi, China) [3411.81 km]
 8554) Xinjiang Wireless Communication Co., Ltd. (Changji, China) [3445.36 km]
赞(0) 打赏
文章通过 CC 4.0 BY-NC-ND 协议发布,转载请注明出处:云梦 » Speedtest 使用中国的服务器节点进行测试

评论 1

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    管理呀,这个是什么意思咯? 输入centos 7使用的安装speedtest命令yum install python-pip speedtest-cli后显示的
    Loaded plugins: fastestmirror
    Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
    base | 3.6 kB 00:00:00
    extras | 3.4 kB 00:00:00
    updates | 3.4 kB 00:00:00
    (1/2): extras/7/x86_64/primary_db | 130 kB 00:00:01
    (2/2): updates/7/x86_64/primary_db | 3.6 MB 00:00:08
    Determining fastest mirrors
    * base: mirrors.nwsuaf.edu.cn
    * extras: mirrors.nwsuaf.edu.cn
    * updates: mirrors.nwsuaf.edu.cn
    No package python-pip available.
    No package speedtest-cli available.
    Error: Nothing to do

    之后输入speedtest-cli –server 5475
    提示-bash: speedtest-cli: command not found

    苏城10个月前 (11-17)回复

如果您觉得文章有用,可以支持一下本站

支付宝扫一扫打赏

QQ 扫一扫打赏