tid=21394& 本帖最後由 IT_man 於 2017-3-23 10:41 編輯
1 k" p& d! s; ^2 h. L
4 l1 L& E5 m' ?; l( z. ^6 l; g首先查目前安裝的php版本 php -v ; ?9 J6 g/ n A w g3 w
1 Z4 W A1 E! ^4 P$ a2 [
其實對 Centos 的部分來說就是換掉 yum 的資料庫 分以下步驟進行: CentOS/RHEL 7.x: - rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
1 J: I) a: W; a, ^0 \8 F1 G - 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-replace2 k- L6 L# j4 Z6 ?0 B3 P) O$ f
- yum replace php-common --replace-with=php55w-common
複製代碼 過程會出現 “WARNING: Unable to resolve all providers …”,這是正常的,你只要按"y" 繼續
* P2 _1 u4 t2 [" q0 W
& e3 l4 r) X. f) ]9 S
|