歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> centos 6.5 升級php,centos6.5

centos 6.5 升級php,centos6.5

日期:2017/3/3 17:59:45   编辑:學習Linux

centos 6.5 升級php,centos6.5

centos 6.5 升級php,centos6.5


1》追加CentOS 6.5的epel及remi源。

# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

2》使用yum list命令查看可安裝的包(Packege)。
# yum list --enablerepo=remi --enablerepo=remi-php56 | grep php

安裝PHP5.6

3》yum源配置好了,下一步就安裝PHP5.6。

# yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
執行第一步 第二步時有可能遇到問題 我也是搞了好久才弄好 我是卸載了yum 重新安裝的yum 如果有人遇到問題實在找不到解決方法  可以按照我的方法試一下

http://xxxxxx/Linuxjc/1181468.html TechArticle

Copyright © Linux教程網 All Rights Reserved