本身安装的是php7.2版本,由于一个小bug,也找不到怎么解决,只能是按照移植前的环境重新安装php7.3了。。具体代码没有截图。只有部分命令了。
648 php -v 649 rpm -qa|grep php 650 yum remove php72w* 651 rpm -qa|grep php 652 yum remove mod_php72w-7.2.27
EPEL 源我前期已经按照过了。不在安装。
yum install epel-release
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
2、安装 PHP7.3:
yum install -y php73-php-fpm php73-php-cli php73-php-bcmath php73-php-gd php73-php-json php73-php-mbstring php73-php-mcrypt php73-php-mysqlnd php73-php-opcache php73-php-pdo php73-php-pecl-crypto php73-php-pecl-mcrypt php73-php-pecl-geoip php73-php-recode php73-php-snmp php73-php-soap php73-php-xmll
systemctl enable php73-php-fpm systemctl start php73-php-fpm
[root@localhost ~]# php73 -v PHP 7.3.16 (cli) (built: Mar 17 2020 10:18:38) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.16, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.16, Copyright (c) 1999-2018, by Zend Technologies [root@localhost ~]#
[root@localhost ~]# rpm -ql php73-php-fpm-7.3.16-1.el7.remi.x86_64 /etc/logrotate.d/php73-php-fpm /etc/opt/remi/php73/php-fpm.conf /etc/opt/remi/php73/php-fpm.d /etc/opt/remi/php73/php-fpm.d/www.conf /etc/opt/remi/php73/sysconfig/php-fpm /etc/systemd/system/php73-php-fpm.service.d /opt/remi/php73/root/usr/sbin/php-fpm /opt/remi/php73/root/usr/share/doc/php73-php-fpm-7.3.16 /opt/remi/php73/root/usr/share/doc/php73-php-fpm-7.3.16/php-fpm.conf.default /opt/remi/php73/root/usr/share/doc/php73-php-fpm-7.3.16/www.conf.default /opt/remi/php73/root/usr/share/fpm /opt/remi/php73/root/usr/share/fpm/status.html /opt/remi/php73/root/usr/share/licenses/php73-php-fpm-7.3.16 /opt/remi/php73/root/usr/share/licenses/php73-php-fpm-7.3.16/fpm_LICENSE /opt/remi/php73/root/usr/share/man/man8/php-fpm.8.gz /usr/lib/systemd/system/php73-php-fpm.service /var/opt/remi/php73/lib/php/opcache /var/opt/remi/php73/lib/php/session /var/opt/remi/php73/lib/php/wsdlcache /var/opt/remi/php73/log/php-fpm /var/opt/remi/php73/run/php-fpm [root@localhost ~]#