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:
  1. rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    5 Z" o3 r, s8 w, o. p
  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-replace. g% P* }* J  T+ r# ~4 }8 ^3 a0 E3 Z
  2. 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, `: ^
參考: https://webtatic.com/packages/php55/
7 I9 a7 B2 a' y( y* \

7 H7 M' h# j; y4 z
如果升級至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