Centos 8安装php74
默认yum安装php是比较低版本或者无法安装的,我们需要从epel和remi源安装特定版本的php。
系统环境:
CentOS Linux release 8.5.2111
安装epel和remi
# 安装epel库
yum -y install epel-release
# 安装remi库
yum -y install http://rpms.remirepo.net/enterprise/remi-release-8.5.rpm
# 搜索安装包
yum search php74*
# 安装php扩展
yum -y install php74-php php74-php-common php74-php-fpm php74-php-mysqlnd php74-php-pdo php74-php-cli php74-php-json php74-php-mbstring php74-php-sodium php74-php-pecl-imagick php74-php-xml php74-php-gd php74-php-pecl-mcrypt php74-php-pecl-zip
# 重置php模块
dnf module reset php
dnf module enable php:remi-7.4
# 安装php和cli等
dnf install php php-cli php-common
# 查看是否安装成功
php -v
1 游客 2025-03-27 23:39 回复
555-1; waitfor delay '0:0:15' --
1 游客 2025-03-27 23:38 回复
555
1 游客 2025-03-27 23:38 回复
555
1 游客 2025-03-27 23:38 回复
555
1 游客 2025-03-27 23:38 回复
555
1 游客 2025-03-27 23:37 回复
555
1 游客 2025-03-27 23:36 回复
555
@@lq3WR 游客 2025-03-27 23:35 回复
555
1-1; waitfor delay '0:0:15' -- 游客 2025-03-27 23:33 回复
555
1GlbqtYc8 游客 2025-03-27 23:31 回复
555
1 游客 2025-03-27 23:30 回复
555
1 游客 2025-03-27 23:29 回复
555
1 游客 2025-03-27 23:28 回复
555
1 游客 2025-03-27 23:26 回复
555