首先安装epel和remi的源

yum -y install epel-release  
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm  
如果要安php 5.4
yum -y install php54 php54-php-mysql php54-php-fpm  
如果要安php 5.6
yum -y install php56 php56-php-mysql php56-php-fpm  
如果要安php 7.0
yum -y install php70 php70-php-mysql php70-php-fpm  
如果要安php 7.1
yum -y install php71 php71-php-mysql php71-php-fpm  
如果要安php 7.2
yum -y install php72 php72-php-mysql php72-php-fpm  

fpm的启动路径和方法:

/opt/remi/phpxx/root/sbin/php-fpm

注意安装好后的路径是:/opt/remi/phpxx

comments powered by Disqus