系统相关
首页 > 系统相关> > CentOS使用epel安装不同版本php-fpm

CentOS使用epel安装不同版本php-fpm

作者:互联网

针对CentOS使用epel安装

yum -y install epel-release
安装好后可以通过如下命令查看
yum info epel-release
yum repolist
查看php版本
php -v

yum list installed | grep php
yum remove php*

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

php7.0安装
yum install -y php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64 php70w-fpm

php7.1安装
yum install -y php71w-fpm php71w-opcache php71w-cli php71w-gd php71w-imap php71w-mysqlnd php71w-mbstring php71w-mcrypt php71w-pdo php71w-pecl-apcu php71w-pecl-mongodb php71w-pecl-redis php71w-pgsql php71w-xml php71w-xmlrpc php71w-devel mod_php71w

systemctl start php-fpm.service
systemctl enable php-fpm.service

标签:epel,x86,CentOS,fpm,64,php71w,php70w,yum,php
来源: https://www.cnblogs.com/ddif/p/10710521.html