yum 安装 php-5.6
一. 简介
暂无,由大家填写
二. 部署
1. 清楚依赖yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64
2. 配置 epel 源yum install -y epel-release
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
3. 配置 remi 源rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
4. 安装 php5.6.xyum 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
5. 安装 php-fpmyum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
6. 配置开机启动服务systemctl restart php-fpm
systemctl enable php-frm
7. 查看是否安装成功ps -ef | grep php
netstat -anp | grep 9000