centos7下yum安装php8.1环境
背景
本实例在centos7.9执行
安装步骤
yum install -y epel-release yum-utils
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y install https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php81
yum install -y php php-common php-opcache php-cli php-curl php-pecl-igbinary php-pecl-redis5 php-pecl-swoole php-pecl-apcu php-fpm php-mcrypt php-mbstring php-gd php-pecl-xhprof php-json php-pecl-imagick php-xml php-pecl-zip php-pecl-yaml php-fpm php-pecl-swoole php-pecl-yac php-bcmath
yum install -y nginx
yum install -y mariadb mariadb-server mariadb-client
yum install -y redis
systemctl enable nginx
systemctl enable php-fpm
systemctl enable mariadb
systemctl enable redis
systemctl restart nginx
systemctl restart php-fpm
systemctl restart mariadb
systemctl restart redis