CentOS6 Installing Redis
Basic Environment:
[Email protected] yum.repos.d]# cat/etc/redhat-release CentOS release 6.7 (Final) [[email protected] yum.repos.d]# uname -rm2.6.32-504.el6.x86_64 X86_64[[email protected] yum.repos.d]#/etc/init.d/iptables Statusiptables:firewall is not Running. [Email protected] yum.repos.d]# Getenforce Disabled
-
Direct Yum installation, error:
[[email protected] etc]# yum install redis
No Package Redis available.
Error:nothing to do
Because my yum source is the system default Yun source, so I updated the Yum source, see
http://7826443.blog.51cto.com/7816443/1715810
Results or error.
In fact Redia is located in the third party's Yum source, not in the official CentOS Yum source, how to solve it?
Go to the following website to download the corresponding version of Epel: (Epel is a yum source maintained by Fedora, with numerous software)
Http://fedoraproject.org/wiki/EPEL
Here's what I downloaded:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Install Epel:
RPM-IVH epel-release-6-8.noarch.rpm
2. Install Redis:
#yum Install redis# service Redis start
3. View port Status
[[email protected] yum.repos.d]# netstat-lntup|grep redistcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 23356/redis-server
It's really that simple.
This article is from the "Lanzhi" blog, make sure to keep this source http://7826443.blog.51cto.com/7816443/1715818
redis< two >