擐check linux臬血鋆php-mcrypt module
7 [$ ^" R q9 e$ b$ }* g$ I) m- #rpm -qa | grep php-mcrypt
銴鋆賭誨蝣 亦∪隞句um摰鋆
1 R" G$ d3 E( U雿摰蝷箄牧︾hp-mcrypt臭摰鋆嚗潭臬瑁銝雿:
7 A: k5 Y- `# q% H) [1 |+ a1 Ofor CentOS 6.x x86:
1 u) V4 }" ~. ?& H0 J- # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm1 H! s" K; M1 ^+ u5 j" @/ t
- # rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm, o$ r1 {2 ]1 A& ]- C
- # wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
7 k! u( s; M3 Z- o - # rpm -ivh epel-release-6-8.noarch.rpm
銴鋆賭誨蝣 / v7 d6 Q- a7 ~5 g4 {
for CentOS 6.x x64% R' u" P$ q8 T3 O5 ~
- # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Y/ W# C# n3 I: ?: @ - # rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
) a, T# P; j h - # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
+ v8 H8 y5 g/ H1 z. X/ D+ C - # rpm -ivh epel-release-6-8.noarch.rpm
銴鋆賭誨蝣 瑁銝 #yum install php-mcrypt嚗雿甈∪箇曄憿
6 G9 M, `% r$ R- # yum install php-mcrypt
5 B! v5 |8 V' K" _. N& o* E/ i. u - Loaded plugins: fastestmirror, refresh-packagekit& V; h; x2 P9 K
- Loading mirror speeds from cached hostfile# q) [7 ?! ?9 q: s
- Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
銴鋆賭誨蝣
; E1 _" }( E6 k* ?$ O) F- j' N, c9 F/ r. d' S
潭
7 ^4 o. [+ F) `+ N8 |: \- #vi etc/yum.repos.d/epel.repo
銴鋆賭誨蝣
& x( t. D: n. ~$ Q撠[epel]畾萎 baseurl閮餉圾嚗銝血mirrorlistW儔嚗憒銝:2 W" b% f# @, q- U& h! `
baseurl4 T* q- H9 }& A9 P
#mirrorlist1 u/ R) Q& E% I1 P0 t5 |& ~
敺瑁銝 #yum install php-mcrypt嚗甈∠潮拙鋆摰嚗啣鋆憒銝璅∠
, O6 |& C& F. w) R* a4 u4 H8 s; W5 r }" \: n# M4 M8 ^. j
9 \* Y3 C. s& U- |: x; M
7 Y& i% m# s- u; ^% l銝apacherestart嚗php-mcrypt module潛雿 |
|