yum 设置php默认版本
yum-config-manager --enable remi-php71
【安装PHP7.1】
yum --enablerepo=remi-php71 php71w php71w-cli php71w-common php71w-devel php71w-embedded php71w-fpm php71w-gd php71w-mbstring php71w-mysqlnd php71w-opcache php71w-pdo php71w-xml php71w-ldap php71w-mcrypt
或
yum --enablerepo=remi-php71 php php-cli php-common php-devel php-embedded php-fpm php-gd php-mbstring php-mysqlnd php-opcache php-pdo php-xml php-ldap php-mcrypt
【安装pecl】
yum install php71w-pecl
【安装yum资源库】
yum install -y epel-release
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm