rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
rpm -Uvh https://mirrors.aliyun.com/remi/enterprise/remi-release-7.rpm
yum clean all && yum makecache
yum install php71 -y
yum install php71-php-fpm -y
yum install -y php71-php-devel
yum install -y php71-php-gd php71-php-intl php71-php-mbstring php71-php-mysqlnd php71-php-mcrypt php71-php-pdo php71-php-pecl-mysql php71-php-pecl-redis php71-php-xmlrpc --skip-broken
yum install -y php71-php-pecl-amqp php71-php-bcmath php71-php-pecl-memcache php71-php-pecl-zip php71-php-opcache
echo "export PATH=$PATH:$HOME/bin:/opt/remi/php71/root/usr/sbin" >>/etc/profile
source /etc/profile
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/270722.html