Technical 技术

CentOS 升级 PHP 至 v7.4

1.yum 安装 epel-release & yum-utils

yum install epel-release yum-utils -y

2. 安装 remirepo 源

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

3. 配置 PHP 7.4 repository

yum-config-manager --enable remi-php74

4. 更新 php

yum update php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y

5. 大功告成,用 php -v 查看版本是否更新成功。

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x