CentOS7:将yum源更换为remi,安装php8
2021-06-30 本文已影响0人
onefiter
将yum源更换为aliyun的remi
yum -y install https://mirrors.aliyun.com/remi/enterprise/remi-release-7.rpm
yum -y install yum-utils
安装PHP8
查询PHP的包
yum repolist all |grep php
yum repolist all |grep php
安装PHP80
yum-config-manager --enable remi-php80
sudo yum install php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mbstring php-curl php-xml php-pear php-bcmath php-json php-redis --skip-broken
查看PHP版本
php -v
php -v