本帖最後由 IT_man 於 2017-3-23 10:41 編輯 ; p+ F+ \, K6 R
( r4 Z$ N3 [& {+ A$ h" Q3 _$ L首先查目前安裝的php版本 php -v # ~% R- b% r- i& V- [( J
% W8 V9 s9 @+ l3 S) E- m1 T
其實對 Centos 的部分來說就是換掉 yum 的資料庫 分以下步驟進行: CentOS/RHEL 7.x: - rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
1 ]" l# U. Q: W* O! Q! n - 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-replace, V$ M) h y5 L2 z8 L5 J5 g+ v
- yum replace php-common --replace-with=php55w-common
複製代碼 過程會出現 “WARNING: Unable to resolve all providers …”,這是正常的,你只要按"y" 繼續
" \' p7 t" K, `5 U* u, f9 Y
2 j& t0 c% [3 b7 x1 J- R
|