centos7 yum安装redis3.2.8

centos7 yum安装redis3.2.8
1、更新元数据缓存:yum clean all && yum makecache 
2、查看是否安装epel: rpm -q epel-release 
3、卸载epel:yum remove epel-release 
4、清空epel目录:rm -rf /var/cache/yum/x86_64/6/epel/
5、安装epel包: rpm -vih http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
6、升级epel: rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
7、安装redis: yum --enablerepo=remi install redis
8、添加端口: redis-server --port 6379 &

9、查看redis: ps -ef | grep redis

10、使用redis: redis-cli

你可能感兴趣的:(centos7 yum安装redis3.2.8)