安装最新epel
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
安装remi源
yum -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf -y install dnf-utils
PHP模块流的列表查看php
dnf module list php
安装php:remi模块
dnf module install php:remi-7.4
dnf module reset php:remi-7.4
dnf更新
dnf update
安装php-xxx
yum install php-xxx
查看php启用的模块
php --modules