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 編輯 9 f4 c' U1 {6 F9 X+ m
4 y5 B$ l5 G+ G# q+ e/ }( [
首先查目前安裝的php版本
php -v
i: ?. Q: K' q5 j
8 ~& ]0 \) M/ h. U# v6 P/ J
其實對 Centos 的部分來說就是換掉 yum 的資料庫
分以下步驟進行:
CentOS/RHEL 7.x:
- rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm, [7 S: w# V* u$ z% I2 W
- 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-replace9 e! r) r* _& x
- yum replace php-common --replace-with=php55w-common
複製代碼 過程會出現 “WARNING: Unable to resolve all providers …”,這是正常的,你只要按"y" 繼續( K$ t0 p, {9 }! E- k& ^8 ]* a
7 o" ~2 W& i# D; C; q9 W
| 歡迎光臨 52AV手機A片王|52AV.ONE (https://www.itech.casa/) |
Powered by Discuz! X3.2 |