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 編輯
4 n( c* Y9 H( b! D
' P8 {( j2 N5 j% ]/ ]
首先查目前安裝的php版本
php -v

  U: [6 A6 D* u/ l9 f

4 A$ R' A5 Y# B8 s( u
其實對 Centos 的部分來說就是換掉 yum 的資料庫
分以下步驟進行:
CentOS/RHEL 7.x:
  1. rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    7 r( Z4 b- ~4 q! _; r! g
  2. rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
複製代碼
CentOS/RHEL 6.x:
  1. rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
複製代碼
CentOS/RHEL 5.x:
  1. rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
複製代碼
開始升級:
  1. yum install yum-plugin-replace3 \% r1 I6 l+ [) l4 |6 B7 v* g
  2. yum replace php-common --replace-with=php55w-common
複製代碼
過程會出現 “WARNING: Unable to resolve all providers …”,這是正常的,你只要按"y" 繼續

/ i& S% x' _/ O; O
參考: https://webtatic.com/packages/php55/; Z0 `1 m) r) R. ~+ A) A
% c7 D) d2 |, K6 N) t8 `" {
如果升級至5.6,請參考 : https://www.cadch.com/modules/news/article.php?storyid=227





歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/) Powered by Discuz! X3.2