1. 程式人生 > >如何yum安裝php最新版本7.2及以上

如何yum安裝php最新版本7.2及以上

1.先下載清華大學的remi源

[[email protected] /]# rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-6.rpm

2.編輯配置檔案

[[email protected] /]# vim /etc/yum.repos.d/remi.repo


[[email protected] /]# vim /etc/yum.repos.d/remi-php72.repo


3.接下來就可以檢視列表

[[email protected] /]# yum list|grep php|grep remi


4.接下來就yum安裝

[[email protected] /]# yum install -y php-fpm php-cli

5.檢視PHp版本