Setup 1. Install
Frist, To install remi Repo and epel Repo.
Remi EL6 for CentOS/RHEL 6.x
rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Remi EL5 for CentOS/RHEL 5.x
rpm -Uvh https://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
有时间我们会碰到 remi.repo 无法使用报错,就像这样
http://remi.schlundtech.de/enterprise/latest/remi/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
这时我们需要修改/etc/yum.repos.d/remi.repo,像这样
baseurl=http://rpms.famillecollet.com/enterprise/5/remi/$basearch/
#mirrorlist=http://rpms.famillecollet.com/enterprise/5/remi/mirror/$basearch/
如果发现安装后 yum makecache 没看到相应的源站点,请检查 repo 文件的 enable 参数是否为 1,1 为开启,0 为关闭状态
[repoName]
name=repoName repo
baseurl=http://repoPath
gpgcheck=0 # 是否启用gpgkey检查
enabled=0 # 是否启用该源
Install Redis
yum install -y redis
[root@zabbix yum.repos.d]# rpm -qi redis
Name : redis
Version : 3.2.1
Release : 2.el5.remi
Architecture: x86_64
Install Date: Thu 28 Jul 2016 12:00:41 PM CST
Group : Applications/Databases
Size : 2113279
License : BSD
Signature : DSA/SHA1, Fri 24 Jun 2016 01:30:12 PM CST, Key ID 004e6f4700f97f56
Source RPM : redis-3.2.1-2.el5.remi.src.rpm
Build Date : Fri 24 Jun 2016 01:28:27 PM CST
Build Host : builder.remirepo.net
Relocations : (not relocatable)
Packager : http://blog.remirepo.net/
Vendor : Remi Collet
URL : http://redis.io
Summary : A persistent key-value database