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 編輯 + k- S2 z# `6 D- i
0 q6 F1 `( q) G
首先查目前安裝的php版本
php -v
, a7 o! T1 n! u: i4 g* a
' [# Q$ [5 N( Y. _
其實對 Centos 的部分來說就是換掉 yum 的資料庫
分以下步驟進行:
CentOS/RHEL 7.x:
- rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
5 Z" o3 r, s8 w, o. p - 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. g% P* }* J T+ r# ~4 }8 ^3 a0 E3 Z
- yum replace php-common --replace-with=php55w-common
複製代碼 過程會出現 “WARNING: Unable to resolve all providers …”,這是正常的,你只要按"y" 繼續4 H5 n( t, l8 C, L, y, z: H, `: ^
7 H7 M' h# j; y4 z
| 歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/) |
Powered by Discuz! X3.2 |