This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Home
Spedoske edited this page Apr 16, 2020
·
6 revisions
欢迎来到 DataCenterSpeedtest-cli 的Wiki页面!
CentOS系统可使用如下命令:
yum -y install python3
yum -y install python3-pip
Debian/Ubuntu
sudo apt-get install python3
sudo apt-get install python3-pip
Windows请至python官网安装python3
注意:Windows用户请将指令python3
替换为python
,pip3
替换为pip
。
本项目依赖requests、prettytable、eventlet包,需输入:
pip3 install requests prettytable eventlet
来安python包.
import sys
import codecs
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
Windows用户可以直接下载本项目的压缩包并解压. 为了安装并使用此项目,您需要下载下载本项目的文件。您可使用git下载项目文件并进入项目文件夹:
git clone https://github.com/Spedoske/DataCenterSpeedtest-cli.git
cd DataCenterSpeedtest-cli
执行:
python3 main.py --list
如果出现类似于下图的表格,恭喜您安装成功.
服务商 | 节点位置 | 节点编号 |
---|---|---|
Amazon Web Services | 美国 弗吉尼亚州 阿什本 | 0 |
Amazon Web Services | 美国 俄亥俄州 都柏林 | 1 |
Amazon Web Services | 美国 俄亥俄州 都柏林 | 2 |
Amazon Web Services | 美国 加利福尼亚州 旧金山 | 3 |
Amazon Web Services | 美国 俄勒冈州 波特兰 | 4 |
Amazon Web Services | 瑞典 斯德哥尔摩省 斯德哥尔摩 | 5 |