1. yum list installed | grep php 查看安装的php版本
mod_php72w.x86_64 7.2.1-1.w7 @webtatic
php72w-cli.x86_64 7.2.1-1.w7 @webtatic
php72w-common.x86_64 7.2.1-1.w7 @webtatic
php72w-devel.x86_64 7.2.1-1.w7 @webtatic
php72w-fpm.x86_64 7.2.1-1.w7 @webtatic
php72w-gd.x86_64 7.2.1-1.w7 @webtatic
php72w-mbstring.x86_64 7.2.1-1.w7 @webtatic
php72w-mysqlnd.x86_64 7.2.1-1.w7 @webtatic
php72w-opcache.x86_64 7.2.1-1.w7 @webtatic
php72w-pdo.x86_64 7.2.1-1.w7 @webtatic
php72w-process.x86_64 7.2.1-1.w7 @webtatic
2. yum install -y php72w php72w-fpm 升级phph版本, 升级完后。
mod_php72w.x86_64 7.2.2-1.w7 @webtatic
php72w-cli.x86_64 7.2.2-1.w7 @webtatic
php72w-common.x86_64 7.2.2-1.w7 @webtatic
php72w-devel.x86_64 7.2.2-1.w7 @webtatic
php72w-fpm.x86_64 7.2.2-1.w7 @webtatic
php72w-gd.x86_64 7.2.2-1.w7 @webtatic
php72w-mbstring.x86_64 7.2.2-1.w7 @webtatic
php72w-mysqlnd.x86_64 7.2.2-1.w7 @webtatic
php72w-opcache.x86_64 7.2.2-1.w7 @webtatic
php72w-pdo.x86_64 7.2.2-1.w7 @webtatic
php72w-process.x86_64 7.2.2-1.w7 @webtatic
phpinfo()