擐check linux臬血鋆php-mcrypt module/ J8 B" H) a+ ]' i2 v7 C# G
- #rpm -qa | grep php-mcrypt
銴鋆賭誨蝣 亦∪隞句um摰鋆, m( z4 i' p& ~; t0 y9 z) M
雿摰蝷箄牧︾hp-mcrypt臭摰鋆嚗潭臬瑁銝雿:. a( I. w' I7 J
for CentOS 6.x x86:3 Y- v9 d' }+ j! {2 J# Q6 b
- # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm0 Z! E+ E9 C: ~/ b7 J% c' J
- # rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm( W" a6 N/ d3 F: Z* T
- # wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm4 c' t3 m D* l0 C7 z8 O4 l% y$ Q
- # rpm -ivh epel-release-6-8.noarch.rpm
銴鋆賭誨蝣 / i: v% g( h& B+ v* z
for CentOS 6.x x64
8 y$ z( |& _* c% e4 o$ h( \1 c- # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm7 N8 o$ r; c q% i
- # rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
( g6 q. z0 T! | - # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
/ R/ _" P' X0 w8 r7 `8 K& j - # rpm -ivh epel-release-6-8.noarch.rpm
銴鋆賭誨蝣 瑁銝 #yum install php-mcrypt嚗雿甈∪箇曄憿& Y& M7 |# o& C" `3 X+ b; u
- # yum install php-mcrypt
0 W6 H) v" \" s& _" M - Loaded plugins: fastestmirror, refresh-packagekit
% C+ ~" y+ a O$ @+ |# N - Loading mirror speeds from cached hostfile
/ @) J. M; F; u - Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
銴鋆賭誨蝣 6 F# N( P1 [& G( f
! {' _6 L9 P+ n! [
潭2 \+ e: J) g, V1 y! z
- #vi etc/yum.repos.d/epel.repo
銴鋆賭誨蝣
8 J7 ?2 N. p7 T! a6 O& g撠[epel]畾萎 baseurl閮餉圾嚗銝血mirrorlistW儔嚗憒銝:1 I: u* V& t6 a9 a1 f; R6 J
baseurl' T8 {$ w* H5 m$ b
#mirrorlist# Y e" H+ ~! v s& D
敺瑁銝 #yum install php-mcrypt嚗甈∠潮拙鋆摰嚗啣鋆憒銝璅∠) M, `6 O& }( w! V9 j
- r9 _" |6 W; D3 k9 P
& B- e2 C, `" L; W
6 G/ ^. [# a8 g銝apacherestart嚗php-mcrypt module潛雿 |
|