擐check linux臬血鋆php-mcrypt module# ^/ T, V) z$ W$ C+ |; m0 ^/ t, y
- #rpm -qa | grep php-mcrypt
銴鋆賭誨蝣 亦∪隞句um摰鋆3 i7 Q. @5 p9 O1 i# X
雿摰蝷箄牧︾hp-mcrypt臭摰鋆嚗潭臬瑁銝雿:
2 R6 k9 X' O; q" A, n, l- Pfor CentOS 6.x x86:
$ c7 W0 {$ q8 Y- h3 @2 i- # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
( o! S; G" T+ U$ T8 i, e- ] - # rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm n. c* H) W: F; \/ G
- # wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
2 U; A' H+ u; a; Y, e - # rpm -ivh epel-release-6-8.noarch.rpm
銴鋆賭誨蝣 2 a6 _- r/ K' c) }* o! s. p* B
for CentOS 6.x x64, D$ Q! l7 h) N3 |4 x
- # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
' j7 P) L# o3 \; e; u - # rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
0 u+ h# L: P1 J, q1 U. I - # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
" t. d# s0 N3 q0 G - # rpm -ivh epel-release-6-8.noarch.rpm
銴鋆賭誨蝣 瑁銝 #yum install php-mcrypt嚗雿甈∪箇曄憿* G$ L4 T; S T( o% V, t0 p; Q5 J
- # yum install php-mcrypt
% \' }9 ?7 t5 e' {; b; w, f - Loaded plugins: fastestmirror, refresh-packagekit5 G* _( q8 ^) G6 j( v
- Loading mirror speeds from cached hostfile% |; w( b6 K3 i2 ?
- Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
銴鋆賭誨蝣 5 S& D% @& j0 H* Q
! U6 E1 ]: Z% H# R& Z
潭( a- E9 T5 E5 G3 c' }/ B5 D* i: D
- #vi etc/yum.repos.d/epel.repo
銴鋆賭誨蝣
/ O) W) B+ a/ R' X撠[epel]畾萎 baseurl閮餉圾嚗銝血mirrorlistW儔嚗憒銝:
/ ^# J, j6 N1 Wbaseurl
$ o; o0 {& c" `#mirrorlist; `5 f( ^ R1 c
敺瑁銝 #yum install php-mcrypt嚗甈∠潮拙鋆摰嚗啣鋆憒銝璅∠/ y1 T+ _# P9 a
; E9 [1 {( D, I- l# ?0 i: c
9 D, {3 W: p: e1 ]8 x/ E& ] B, z3 L& {1 b8 D7 `8 W7 e
銝apacherestart嚗php-mcrypt module潛雿 |
|