centos7
1.添加EPEL和REMI存储库
运行以下命令以添加所需的存储库:
sudo yum install epel-release
sudo yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
二、在CentOS 7上安装PHP 7.4版本
依次运行
sudo yum -y install yum-utils
yum repolist all |grep php
sudo yum-config-manager –enable remi-php74
sudo yum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json php-redis
php -v
如果要查看启用的模块,请运行:
php –modules
原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/272005.html