- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
使用speedtest-cli命令查看下载和上传最大流量: h9 t2 {4 `# U- T
yum install -y python-pip + k. T8 O- X: a
. p5 S; x& {. ?2 k7 k: l
或者python get-pip.py
t' {- o7 X5 V" s1 R4 o) ]3 g. X1 G. Q- X$ P9 W
python get-pip.py
0 @6 M! l- q5 }; K- KDEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/de ... s/#python-2-support pip 21.0 will remove support for this functionality.1 W% @5 O! n/ B4 y9 x3 V$ J
Collecting pip<21.0: F, ?% k; v& S( _+ a5 k$ w8 x
Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
( d) v3 w; N! y7 R, `# d% K |????????????????????????????????| 1.5 MB 29 kB/s
6 V3 b% Z, e$ a5 I4 R8 `Collecting wheel/ m- _' Q3 G& ~; [( p; M
Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)+ n% M! l1 u* X6 T
Installing collected packages: pip, wheel* `" \' e# Q u* _3 `1 ]
Successfully installed pip-20.3.4 wheel-0.37.1
! Y" a$ e7 ~$ k5 X+ m0 _# f+ F3 }7 y- T0 h. F5 C/ i
# k. K# _1 _$ K4 H5 n
( B) X p, H/ P9 y: r
安装speedtes-cli + ]: I z5 Y2 a: {8 Q/ m$ P/ X
pip install speedtest-cli [! u0 V/ S: b5 y6 I
pip install speedtest-cli ) g& J6 e. E1 t c
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/de ... s/#python-2-support pip 21.0 will remove support for this functionality.: ]/ f8 }+ M. z2 H3 y3 x
Collecting speedtest-cli9 e8 `1 b* z3 \4 l
Downloading speedtest_cli-2.1.3-py2.py3-none-any.whl (23 kB)
2 ?0 l; I2 W( u% F3 l3 D5 PInstalling collected packages: speedtest-cli
* O! B1 x% [. e# r( ZSuccessfully installed speedtest-cli-2.1.37 `/ u: v. z& h, ~; _9 {
) T- O+ z( c; {! ]0 ^6 ]
) G- ]) U9 p0 T$ K. Z
[root@test-vm ~]# speedtest
& T* `( j& c2 b& D. a$ P4 bspeedtest speedtest-cli # M6 U2 K5 C/ }% F* D2 m+ m
[root@test-vm ~]# speedtest5 D0 W) P& U) U6 d9 b( Z; `
speedtest speedtest-cli ) c! u+ n7 `8 ` G2 _0 s# h
[root@test-vm ~]# speedtest-cli
* \ n4 c$ z. R2 _! SRetrieving speedtest.net configuration...; @5 p2 G* q/ t
Testing from Unknown (202.60.126.184)...
# X6 Y5 B6 D2 E9 xRetrieving speedtest.net server list...) t6 U; a+ ^& ?& R1 Q
Selecting best server based on ping...4 Y- ] O# M! r, d, F% b6 Z! O/ G2 F
Hosted by 天津电信 (TianJin) [565.12 km]: 42.105 ms
; _0 B2 O! k6 y! k( g+ B6 wTesting download speed................................................................................
/ B2 y3 y q* _. I/ D% r& M7 v+ ADownload: 27.61 Mbit/s
2 T) t, j0 }" _( c$ n4 s) \Testing upload speed................................................................................................
1 G8 }( S" x6 O. kUpload: 27.80 Mbit/s
' t* A6 D/ F7 m5 N% G7 G' h[root@test-vm ~]# ) N! d, @ E8 J9 V
5 N' d% }6 K2 J3 u
7 n7 F1 v3 z C6 r# W" V* x7 u, ~& F
* K f3 e$ p+ D' n% b) v- w) L使用nload命令查看:% n! P. I. _) k9 T( B
1 M) j5 Z4 [9 O4 lyum install -y nload- M( q8 a% i* z" J5 [% y" P
* h' ]; h y, C6 r
4 M) B, o9 J3 a6 U# ]3 X
或者dstat -n 命令:5 `6 H( _9 _) p
6 F: S* f) W$ e7 s- C
0 L }2 D3 {* D9 \+ c9 B% U+ {) |, [" Y& a$ Q; P( h
再或者使用ethtool eth0/ U4 |) a% s7 W" z
查看网卡。* E' ?* w' r% i3 Z
|
|