|
|
使用speedtest-cli命令查看下载和上传最大流量
, T6 a/ }. N, eyum install -y python-pip
+ {4 @# Y4 \: y6 G! e, T6 y K4 u6 I+ T3 O4 {' f4 e' e
或者python get-pip.py& `* z0 f T m ~
7 D- B) ^/ M) M/ l) h1 h) ]/ l
python get-pip.py
: M5 K1 x' A' K6 LDEPRECATION: 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.
# {2 Y* a) n" T2 F7 PCollecting pip<21.0
- Q8 \$ k' J- {8 N Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
- ]+ ~9 @/ L' H ?" g5 Z |????????????????????????????????| 1.5 MB 29 kB/s ; j. l% Z8 @1 Q3 _0 i2 T1 f0 P
Collecting wheel- @/ i: _) N. b% i, t; G. t( g0 B4 Z
Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
% x) ?5 Q0 o Z. C! D" dInstalling collected packages: pip, wheel1 g0 x& n6 v6 P& u" e; j4 L9 R L) e
Successfully installed pip-20.3.4 wheel-0.37.1
% w7 m, S5 m* A/ Y# H; |
7 S) A' k: r2 A
1 b' _4 N0 ]: O5 t$ w3 o" j1 c/ p& Z# I! L
安装speedtes-cli
% {& j# Y; k7 Z, z0 \$ Z9 U" Ypip install speedtest-cli ?0 G4 ]: U1 T9 l/ u
pip install speedtest-cli
4 K9 ]5 _8 b. K9 lDEPRECATION: 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.
# S+ I, J- ^% B; ^- P* C: v/ R. |# G4 jCollecting speedtest-cli: D9 T& C: X2 u7 t: M
Downloading speedtest_cli-2.1.3-py2.py3-none-any.whl (23 kB)
4 @# r A( P5 zInstalling collected packages: speedtest-cli
# b8 B" r; h+ U; rSuccessfully installed speedtest-cli-2.1.38 J# w5 r/ M+ F4 d; x' d8 Q6 b' m
- U/ @) X8 [9 v7 c3 N) ~
+ L5 R6 w: ?6 m0 |[root@test-vm ~]# speedtest+ B) J' N/ J$ s w7 @2 t
speedtest speedtest-cli
8 L+ O' u. M! j[root@test-vm ~]# speedtest
/ L) W* }7 g M6 dspeedtest speedtest-cli
. P- Y' ^2 i) t( t1 \7 o+ h3 O[root@test-vm ~]# speedtest-cli
4 t! y. M, t$ [9 Y8 m: U- }5 o4 T% I* \Retrieving speedtest.net configuration...
1 P( o/ m4 f& ~( n3 a/ Z0 STesting from Unknown (202.60.126.184)...
& e7 k2 X/ A0 W9 aRetrieving speedtest.net server list...( w; R2 ~+ a) a' z
Selecting best server based on ping...
7 _- S6 c3 }' u& y1 DHosted by 天津电信 (TianJin) [565.12 km]: 42.105 ms6 W- z' G) H" P7 L
Testing download speed................................................................................4 w3 K* [# J, G4 B1 Z
Download: 27.61 Mbit/s4 e$ |1 F7 G( D0 \& }: [
Testing upload speed................................................................................................
F7 Y# C3 e+ F4 D# f' NUpload: 27.80 Mbit/s8 ?& P5 X1 H- ?7 \. K, [( q @
[root@test-vm ~]#
+ x: F- U3 t+ Z
* e0 G% c, ]8 H0 p+ B/ ~2 d8 q2 O( \; y: B
9 o" R' v6 D, x( V
使用nload命令查看:4 W0 t6 N! x$ T8 z+ ]8 K! t, c
8 [, X0 }8 P7 ?& pyum install -y nload" o# T! W2 D' Y$ _, @9 G
3 s5 e# F; Q. m: _; F
) B( ?0 T7 O6 n1 ^( |6 t4 {# S
或者dstat -n 命令:0 y' v" U: t3 E% ]$ J
" u4 U: o' u7 F0 R" y
- R% ]* `- F4 C! ?
; M2 K8 o) r [7 S再或者使用ethtool eth0
0 O2 @3 b" i# s9 Q查看网卡。
# b) L3 i9 F# i; \/ w, Z$ r |
|