以 php-fpm 为例,安装其7.1版本。
通过yum search php-fpm,可以查到要用php71-php-fpm这个名称来安装。
yum install php71-php-fpm
提示安装完成.
这时,先查出其对应的rpm包名。
rpm -qa|grep php-fpm
得到如下结果:
[root]# rpm -qa|grep php-fpm php-fpm-5.6.17-1.el6.remi.x86_64 php71-php-fpm-7.1.2-1.el6.remi.x86_64
然后执行:
rpm -ql php71-php-fpm-7.1.2-1.el6.remi.x86_64
得到:
[root]# rpm -ql php71-php-fpm-7.1.2-1.el6.remi.x86_64 /etc/logrotate.d/php71-php-fpm /etc/opt/remi/php71/php-fpm.conf /etc/opt/remi/php71/php-fpm.d /etc/opt/remi/php71/php-fpm.d/www.conf /etc/opt/remi/php71/sysconfig/php-fpm /etc/rc.d/init.d/php71-php-fpm /opt/remi/php71/root/usr/sbin/php-fpm /opt/remi/php71/root/usr/share/doc/php71-php-fpm-7.1.2 /opt/remi/php71/root/usr/share/doc/php71-php-fpm-7.1.2/fpm_LICENSE /opt/remi/php71/root/usr/share/doc/php71-php-fpm-7.1.2/php-fpm.conf.default /opt/remi/php71/root/usr/share/doc/php71-php-fpm-7.1.2/www.conf.default /opt/remi/php71/root/usr/share/fpm /opt/remi/php71/root/usr/share/fpm/status.html /opt/remi/php71/root/usr/share/man/man8/php-fpm.8.gz /var/opt/remi/php71/lib/php/opcache /var/opt/remi/php71/lib/php/session /var/opt/remi/php71/lib/php/wsdlcache /var/opt/remi/php71/log/php-fpm /var/opt/remi/php71/run/php-fpm