yum php fpm5.6,CentOS 7 yum 安装php5.6
配置yum源
追加CentOS 6.5的epel及remi源。
# yum install epel-release
# 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-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-common
php-opcache及php-pecl-apcu會有效的提高php執行速度。
用PHP命令查看版本。
# php -v
總結
以上是生活随笔為你收集整理的yum php fpm5.6,CentOS 7 yum 安装php5.6的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java iter是否存在_Java中L
- 下一篇: php curl https 443,P