CentOS 7 yum 安装php5.6
生活随笔
收集整理的這篇文章主要介紹了
CentOS 7 yum 安装php5.6
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
配置yum源
追加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以下是CentOS 7.0的源。
# yum install epel-release # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm使用yum list命令查看可安裝的包(Packege)。
# yum list --enablerepo=remi --enablerepo=remi-php56 | grep php安裝PHP5.6
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用PHP命令查看版本。
# php --version轉載于:https://www.cnblogs.com/jie-hu/p/5950584.html
總結
以上是生活随笔為你收集整理的CentOS 7 yum 安装php5.6的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Unity AssetBundles a
- 下一篇: 梦到老鼠尾巴断了是什么意思