|
|
Operation too slow ,Less than 1000 bytes
. i. ]# Z( m M3 s0 C1 Q$ g# f
: a/ U1 x# J6 Q9 }. A问题
- i. `2 n- N( u9 D4 q# m) s- }4 d5 H' h2 }* E! p9 _/ U. H
yum list
' t1 @, C' Y0 z3 @' NLoaded plugins: fastestmirror$ L* M( [9 c5 N! z. R+ H/ m( N
Determining fastest mirrors3 Y; E& o `% c
http://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds'). R, N4 O- O' i% I8 C
Trying other mirror.
, v. ~) D/ i, F3 d5 }http://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')0 Z( ^ I1 c% D" K6 G
Trying other mirror.
7 w H# e& [- D( h/ V# Lhttp://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
! d! ]* Q8 ~+ g c: q; lTrying other mirror.8 J. y0 {: Y3 d$ r
l2 G, ]3 \/ O- B/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
1 Y" C6 p3 E' Y) a! Q" ~
9 U' Q, d2 _- h6 g5 f$ [- G: f分析来看
4 ]4 i7 y# |2 r2 e5 g1 Q- F3 c% ^% z1 t2 j0 @% E
http://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
/ |& s+ u9 O, Bhttp://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')8 i) l. {: T& [& |" `
http://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
0 X7 I0 x# z$ j5 z$ q1 p7 n+ `6 }# s无法识别目录。 w; s* P- C+ \1 l4 z$ l: w! Z6 ~
8 U, U1 v& v9 s8 A& a# N
解决办法:
) s8 N* F) N9 q' G0 M; @. Z" \! F$ U检查repo文件
9 F' {4 G5 J! |/ @) P
3 m# B9 z& n+ F" N. ncat /etc/yum.repos.d/base.repo & Y' ?- m" X, T
[base]8 v, @ \! A8 ?! | F* e
name=CentOS-$releasever - Base
$ M! u8 K; Y) [5 X& x/ D6 A a) I* v#mirrorlist=http://mirrors.163.com/?release=$releasever&arch=$basearch&repo=os&infra=$infra
7 w" M. H. o3 l8 ibaseurl=http://172.24.21.35/os/
1 i( S3 s+ Z0 {$ \gpgcheck=0% l8 k# R" g w! q! o
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
' E" F- M7 Y' p) C- @/ l; c( s% @
, ~9 Z4 A& N. K j#released updates
6 n1 T: y( p+ |9 u! A[updates]- ?) X& V. w- J: W( v6 g1 i! T4 j
name=CentOS-$releasever - Updates
/ @: ?! l" K' w% d2 u#mirrorlist=http://mirrors.163.com/?release=$releasever&arch=$basearch&repo=updates&infra=$infra" C5 t% [& e6 ~8 @' l% f- `7 V
baseurl=http://172.24.21.35/updates/x86_64+ S, p! H a8 z* I. F
gpgcheck=0# s* l3 l$ M( Z6 M/ r
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
) w1 G+ M, l) J& |6 C2 w5 \/ k$ R# A" F' W V a! o% b
#additional packages that may be useful
5 w; F# H, D# E% r6 O[extras]* r* K: a% }9 q) O+ m# g
name=CentOS-$releasever - Extras
0 q/ V& q: p: g9 Z5 k#mirrorlist=http://mirrors.163.com/?release=$releasever&arch=$basearch&repo=extras&infra=$infra- Z" L2 i4 o% T$ c! K7 T3 ^- M
baseurl=http://172.24.21.35/extras/x86_64
( r/ f1 c& G" Fgpgcheck=08 t( i* |. X2 F$ p. |, i1 C0 ^, v
) W" Q# \+ O0 w% }' y5 F0 ?- |7 f$ q% Z
; [; H! _8 L# g/ A; [4 n发现是配置的路劲里目录写错了。; u1 z' k3 z% i
修改即可:+ q4 l* F+ l# D8 S3 F
( F- G' F o1 Y" L% l. I2 g8 Y! {
* \* h# M7 x T' P" q8 a
[base]. `# V! T2 \" h
name=CentOS-$releasever - Base2 ^& N! O3 G4 \- ]# W
baseurl=http://172.24.21.35/centos/os/3 [3 u0 E. l- \9 [8 [6 w# Z8 T
gpgcheck=0
, P3 R/ P+ P9 C( P( V2 `7 B6 d7 c. y$ [" w
#released updates
6 o* n( Z& M; P5 I[updates]
- A! \) r" G4 o" {name=CentOS-$releasever - Updates
8 R$ t; P+ d- b+ @9 R) X! U1 vbaseurl=http://172.24.21.35/centos/updates/* k& @5 q( T+ R; b; Q6 z$ w# m# U
gpgcheck=0
3 P% l: @* H* H: D* f+ z1 g1 d3 N" @7 G6 E
#additional packages that may be useful/ p1 w1 [, t; }' l3 w
[extras]3 `7 y. v+ Y; @, k
name=CentOS-$releasever - Extras
, ~% C! g0 {$ [ Ibaseurl=http://172.24.21.35/centos/extras/x86_64/
/ @$ Y' b( H- S& M! E; @gpgcheck=0
3 d4 E) x' o. S# I+ f0 ~8 y: n5 Y7 K# _, u }) w0 {6 E
# Y( u* e% a0 a- v1 N% V/ D4 B' W, }' t. }
|
|