cento7.9 yum 安装 php8.1 通过 remi-php81

yum install -y epel-release yum-utils

yum install -y http://rpms.remirepo.net/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-bcmath

yum install -y nginx vim htop net-tools svn rsync sudo openssl openssh-server openssh-clients lrzsz fish dnf crontabs dstat wget

systemctl enable nginx
systemctl enable php-fpm
systemctl restart nginx
systemctl restart php-fpm

你可能感兴趣的:(php,服务器,linux)