小强哥博客

小强哥,小强哥博客,技术大咖

在centos7中使用RPM安装Redis3.2

在centos7中使用RPM安装Redis3.2,执行如下命令,一条命令搞定,

wget https://dl.iuscommunity.org/pub/ius/archive/CentOS/7/x86_64//redis32u-3.2.11-1.ius.centos7.x86_64.rpm http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/j/jemalloc-3.6.0-1.el7.x86_64.rpm  http://www.rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/logrotate-3.8.6-14.el7.x86_64.rpm \
&& rpm -ivh logrotate-3.8.6-14.el7.x86_64.rpm jemalloc-3.6.0-1.el7.x86_64.rpm \
&& rpm -ivh redis32u-3.2.11-1.ius.centos7.x86_64.rpm  

安装完成以后执行测试,如下,

[root@elastalter-server bin]# which redis-cli 
/usr/bin/redis-cli
[root@elastalter-server bin]# 

搞定。