tid=21394& 本帖最後由 IT_man 於 2017-3-23 10:41 編輯
s+ g: J; D2 D9 x3 c" _5 ?8 S
9 b, D( r: J$ J* J) B8 J, ~5 ~" ~首先查目前安裝的php版本 php -v h4 K3 R/ Q7 o
y; @# T0 P ]2 i: _8 B
其實對 Centos 的部分來說就是換掉 yum 的資料庫 分以下步驟進行: CentOS/RHEL 7.x: - rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm- T1 R2 T4 c, ~" E8 |5 x. A
- rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
複製代碼 CentOS/RHEL 6.x:- rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
複製代碼 CentOS/RHEL 5.x:- rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
複製代碼 開始升級:- yum install yum-plugin-replace9 ^! \2 h0 N+ Z( R( a. a
- yum replace php-common --replace-with=php55w-common
複製代碼 過程會出現 “WARNING: Unable to resolve all providers …”,這是正常的,你只要按"y" 繼續
; w5 e' d1 Q r T' a$ n
" ], S Z9 u- }* m' `0 V
|