CentOS 7 yum 安装 PHP7.3
1、安装EPEL:
yum install epel-release
2、安装remi:
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
3、安装PHP 7.3
yum --enablerepo=remi-php73 install php
4、查找php7.3扩展包信息
yum --enablerepo=remi-php73 search php | grep php73
5、安装(用到的)php7.3扩展
yum --enablerepo=remi-php73 install -y php-pecl-swoole4 php-pecl-amqp
php-pecl-ssh2 php-fpm php-cli php-bcmath php-gd php-json php-mbstring
php-mcrypt php-mysqlnd php-opcache php-pdo php-pecl-crypto
php-pecl-mcrypt php-pecl-geoip php-recode php-snmp php-soap php-xml
php-xmlrpc php-pecl-redis5
6、查看php已安装的扩展(列表中是已安装拓展)
php -m
7、命令
systemctl start php-fpm #启动
systemctl stop php-fpm #停止
systemctl restart php-fpm #重启