- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
使用speedtest-cli命令查看下载和上传最大流量
2 G* n' _9 q* p! vyum install -y python-pip
, u6 b) W5 w' b! v: X2 z0 R+ S4 u% ^' Q
或者python get-pip.py" J" P6 _3 T8 z/ A) K
, `) C& E! p7 m0 Y5 T% D python get-pip.py
c1 t& W! ^2 r( v* N) V9 GDEPRECATION: 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.
7 u/ Z) o8 `2 jCollecting pip<21.0
: S( P9 A4 K1 B0 p/ o Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
2 _# i% n' }* o, F! K) k% F |????????????????????????????????| 1.5 MB 29 kB/s 6 w1 D2 B# T6 K( X; P ~* y9 f
Collecting wheel! N6 O5 f% S' h# W, F' U5 K
Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)5 i0 U8 f5 R$ v' v# m: b
Installing collected packages: pip, wheel
# u% X: S% I2 ]$ ^/ m8 B- b& uSuccessfully installed pip-20.3.4 wheel-0.37.1. S7 d7 P. H. ?, F( X" Q# K2 A
& q5 a3 w) \ b+ @, _% r3 a. A3 }; g. Z9 G* b
7 S7 e' U9 f; ]6 S安装speedtes-cli 8 ]5 g* E; D5 W3 T7 Y8 F* _) w
pip install speedtest-cli
4 p+ C/ u, W O/ ~3 Xpip install speedtest-cli
! I& }! ^, d& A. YDEPRECATION: 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.3 g/ y+ J( s, F8 N/ C
Collecting speedtest-cli
+ i; ~' T1 Q$ d0 @ Downloading speedtest_cli-2.1.3-py2.py3-none-any.whl (23 kB)
6 H# p' y% D+ }' a0 [" LInstalling collected packages: speedtest-cli) j3 a5 l, s, v9 n0 q+ u7 a! G# T
Successfully installed speedtest-cli-2.1.3
) h e" p& o$ Y0 v1 F$ e
* w2 g; j9 n3 o T; s9 I6 \5 ^% Y; P) J% i% i9 @4 @: p
[root@test-vm ~]# speedtest/ s$ Y$ d! H( S/ d7 |8 t% ~
speedtest speedtest-cli
7 z) k( e/ N! }: }: G6 U[root@test-vm ~]# speedtest
6 c J1 I2 E7 yspeedtest speedtest-cli
: W: e. M2 r6 H# A" C7 ]4 L* B[root@test-vm ~]# speedtest-cli
% r# m% r* @ ^ hRetrieving speedtest.net configuration...
: m# o c( o" m! z, I" C8 nTesting from Unknown (202.60.126.184)...
$ O% g: D: @/ ~1 E' A0 w' ARetrieving speedtest.net server list...1 a1 y& J8 l" d6 W7 o3 _ i
Selecting best server based on ping...
@7 u6 k% H l0 N2 \* p, zHosted by 天津电信 (TianJin) [565.12 km]: 42.105 ms9 v! C4 d1 L, B
Testing download speed................................................................................
% d; `# s- O5 Z/ ^Download: 27.61 Mbit/s9 m3 u; z6 X+ t! p- c6 z2 l# |
Testing upload speed................................................................................................
6 }7 b$ B- t- |) _( e5 B* w6 uUpload: 27.80 Mbit/s$ \! j: {* ^1 L/ x! ^) X- z
[root@test-vm ~]# : J( u7 f* ]' v5 t [ U7 X
5 F8 P) A4 m1 \% H' K t) J
8 f g5 u* X' R5 B6 s2 U8 m- r& l7 }/ l2 n9 R# Q6 m
使用nload命令查看:
0 B3 S% n% E- E% J& J6 x% m: e" o) q7 }7 j
yum install -y nload
' A1 u# l: g; i0 _: z
: r4 A4 u, ~, r: |0 S
4 L" F5 D( L. E0 ?- |6 V或者dstat -n 命令:/ I+ q0 P/ W7 z; a1 Q) y
' y0 S' f3 ?# r- }" J% m" \5 j; I9 ^0 }7 @: T+ x! A/ H; f
5 E& o* {( n5 h* ] o7 }% P再或者使用ethtool eth0- K* o/ d+ e. p# Z
查看网卡。- y0 {5 _ o+ v% a# B0 g+ {
|
|