# Linux 服务器速度测试

**URL:** <https://www.isharkfly.com/t/linux/17018>\
**Category:** DevOps\
**Tags:** linux\
**Created:** [March 7, 2025, 1:50pm UTC](https://www.isharkfly.com/t/linux/17018 "2025-03-07T13:50:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hex](https://www.isharkfly.com/user_avatar/www.isharkfly.com/hex/32/21953_2.png) [@hex](https://www.isharkfly.com/u/hex)\
**Post date:** [March 7, 2025, 1:50pm UTC](https://www.isharkfly.com/t/linux/17018/1 "2025-03-07T13:50:03Z")

</div>

可以使用速度测试工具： `speedtest-cl`

如果没有安装的话，安装一下。

```auto
apt install speedtest-cli

```

## 测试命令

直接运行：`speedtest-cli --secure`

服务器的输出为：

```auto
root@ns521461:~# speedtest-cli --secure
Retrieving speedtest.net configuration...
Testing from OVH SAS (158.69.124.134)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Fibrenoire Internet (Montréal, QC) [1.79 km]: 4.256 ms
Testing download speed................................................................................
Download: 673.37 Mbit/s
Testing upload speed......................................................................................................
Upload: 186.85 Mbit/s
root@ns521461:~# 

```

能大概测下服务器对外部网络的速度。

![2025-03-07_08-49-40](https://www.isharkfly.com/images/transparent.png)
