1.执行查看自己的yum源有没有php72
yum search php72w
2.安装对应插件
yum -y install php72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
3.重启php-fpm
systemctl restart php-fpm