CentOS 7 yum 安装 PHP7.3

风格不统一 提交于 2020-02-12 14:54:50

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  #重启
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!