Remi介绍
Remi repository 是包含最新版本 PHP 和 MySQL 包的 Linux 源,软件几乎都是最新稳定版。由 Remi 提供维护。有个这个源之后,使用 YUM 安装或更新 PHP、MySQL、phpMyAdmin 等服务器相关程序的时候就非常方便了。
Remi官方网站:http://rpms.famillecollet.com/
https://mirrors.huaweicloud.com/remi/
开始配置
第一步:
yum install epel-release -y
第二步:
添加Remi源,不管32位还是64位的系统,运行下面命令:
国内(清华):
CentOS6:
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-6.rpm
CentOS7:
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm
欧洲(荷兰):
CentOS6:
rpm -ivh https://mirror.oxilion.nl/remi/enterprise/remi-release-6.rpm
CentOS7:
rpm -ivh https://mirror.oxilion.nl/remi/enterprise/remi-release-7.rpm
美洲(美国):
CentOS6:
rpm -ivh http://mirror.bebout.net/remi/enterprise/remi-release-6.rpm
CentOS7:
rpm -ivh http://mirror.bebout.net/remi/enterprise/remi-release-7.rpm
第三步:
Remi源默认是没有启用的,我们来启用Remi源,修改/etc/yum.repos.d/remi.repo
vi /etc/yum.repos.d/remi.repo
文件,把文件内的 enabled=0
改为 enabled=1
*注意:改文件内有2个 enabled=0
,我们修改 [remi]
下面的,不要修改 [remi-test]
下面的。
最后:
yum clean all
yum makecache
生成缓存