52AV手機A片王|52AV.ONE
標題: 升級 Centos 的 php 版本 至 5.5 [打印本頁]
作者: IT_man 時間: 2015-11-2 17:00
標題: 升級 Centos 的 php 版本 至 5.5
本帖最後由 IT_man 於 2017-3-23 10:41 編輯
2 M# g" ]( u/ H, L4 g, ?& O* f! X
7 X- \# l- c( B! E* U6 |$ |* H首先查目前安裝的php版本
php -v
3 G% F. s' T. A& l' e
* v( I. m$ ~8 Z5 _+ ^
其實對 Centos 的部分來說就是換掉 yum 的資料庫
分以下步驟進行:
CentOS/RHEL 7.x:
- rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+ y3 A6 T1 o1 @) T$ ` - 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
! e5 @7 g" o9 w% o - yum replace php-common --replace-with=php55w-common
複製代碼 過程會出現 “WARNING: Unable to resolve all providers …”,這是正常的,你只要按"y" 繼續 O* S0 q* Y9 }% I: ^" f+ q0 T
6 S4 _! I- X# \" T
| 歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av23.xyz/) |
Powered by Discuz! X3.2 |