- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
使用speedtest-cli命令查看下载和上传最大流量# Q* E* r" I- {3 _/ q( T% f
yum install -y python-pip
# ^9 l6 a, ~# M- m& X5 X
+ ~, d- h2 t# p5 I `6 N或者python get-pip.py
, b* |) w' V9 n/ m: [6 f7 K$ [6 f' l# f! B3 m u6 }) T
python get-pip.py 7 c+ }/ [0 u) o Y# V; K8 {1 k8 g# c6 k
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.
5 b9 @* u- a- B1 y: bCollecting pip<21.0" O( L2 i/ I9 t; h
Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB). A+ b) v& \ a- b
|????????????????????????????????| 1.5 MB 29 kB/s
+ f; ` q0 ~9 ]; X! @) PCollecting wheel, p. J2 f" a/ F* y$ f; g
Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
/ w6 V4 Q5 K6 t, F* TInstalling collected packages: pip, wheel3 }! p3 o* A* e; ^- A
Successfully installed pip-20.3.4 wheel-0.37.1
6 {7 O, q: o! W+ n) B% s0 n* @
* J: f. m9 W0 _
^5 ] z {9 T, Z7 x
; Q4 O: s8 o3 P4 |8 g; E+ R安装speedtes-cli
& Q- B7 e) d7 i* K3 Ypip install speedtest-cli
V8 {9 Q) X" L, gpip install speedtest-cli
8 c7 k- H- p/ b* PDEPRECATION: 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.% g: k) A2 q2 ]$ K5 C; }
Collecting speedtest-cli
6 H( q6 z8 N f7 l! q Downloading speedtest_cli-2.1.3-py2.py3-none-any.whl (23 kB)
# S; L9 [1 u; K# K: dInstalling collected packages: speedtest-cli' c3 Y. p( F- t, q1 B" b
Successfully installed speedtest-cli-2.1.3+ V' U: \; P8 w& v2 l
! ~0 m) F; _4 g+ ~: K4 J# J% e+ w+ g- O9 S2 I0 b: z
[root@test-vm ~]# speedtest
6 r* O# K9 V& y: fspeedtest speedtest-cli
) @5 J" G9 j) u$ O) d4 B[root@test-vm ~]# speedtest2 z+ p! n, Z- |2 B* T% y- A
speedtest speedtest-cli 4 ?" \! O D$ S1 O
[root@test-vm ~]# speedtest-cli
% X7 Y6 L" ?$ h2 o; S* ^& H8 f: bRetrieving speedtest.net configuration...
, C* d2 Y9 z5 b- _/ Y: [8 GTesting from Unknown (202.60.126.184).... d' f" q6 [. z N/ v- X
Retrieving speedtest.net server list...7 g0 d/ V3 C) A- h
Selecting best server based on ping...% W; E. ~) A5 j! d
Hosted by 天津电信 (TianJin) [565.12 km]: 42.105 ms
" C" {( ?5 \' F* ^Testing download speed................................................................................
% M5 P! z, V( f" s% p. `$ eDownload: 27.61 Mbit/s5 s. V* U0 j' ]- P6 ?1 N
Testing upload speed................................................................................................% F% B+ H# @1 s" ~
Upload: 27.80 Mbit/s% A& F7 K% O. c
[root@test-vm ~]#
/ B/ X) q" f* e# m4 {) d4 Y/ F3 ^' F% c6 b z
3 D& _/ g9 U5 O; |
# r* e: n# h# D+ S1 Y, ~, Z$ N) r
使用nload命令查看:
% [5 q* o, J7 }; ? |' H7 Q; ]4 \4 b( ?5 n. Q% m- j# y+ F
yum install -y nload4 K( @: Q9 |0 C
/ G* d7 l4 f3 S2 H& S
2 P* {" s. Z: [& H9 U
或者dstat -n 命令:
! S: T6 C: `4 Y0 G5 a' n0 [
S s* V. q3 }2 `, g. k8 c! ?+ E5 w1 C- r; Q8 U9 ?, _1 p% A
% _! P+ w; g0 v; r5 a) J0 s t
再或者使用ethtool eth0
9 G$ z ]) H! j( @7 W7 ~查看网卡。
' }4 o) p& w: Z* T4 G7 p) c |
|