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 編輯
1 _3 f' U. |+ I/ Y! [6 M3 J) \( Q- ^9 L8 U4 F
首先查目前安裝的php版本
php -v
& _0 g9 y$ g( F& z5 l% f5 k
5 w1 Q$ { e8 a
其實對 Centos 的部分來說就是換掉 yum 的資料庫
分以下步驟進行:
CentOS/RHEL 7.x:
- rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
. ~5 V, ?! ]0 r9 F$ l! s - 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/ x' k( @/ k0 R: o- n; b* B3 I
- yum replace php-common --replace-with=php55w-common
複製代碼 過程會出現 “WARNING: Unable to resolve all providers …”,這是正常的,你只要按"y" 繼續
; W+ ~4 T- D. t; I
6 ]" ~" E# }8 K) o: l3 S. [- l) l
| 歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/) |
Powered by Discuz! X3.2 |