CentOS 6.9通过yum安装指定版本的Redis

一、安装

// 安装依赖
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -ivh epel-release-6-8.noarch.rpm
# yum install -y jemalloc
// 安装Redis
# wget http://www.rpmfind.net/linux/remi/enterprise/6/test/x86_64/redis-4.0.0-1.el6.remi.x86_64.rpm && rpm -ivh redis-4.0.0-1.el6.remi.x86_64.rpm

备注:http://www.rpmfind.net通过这个网站查找到的RPM包。

二、设置服务开机启动

# chkconfig redis on

三、服务常用操作

// 服务状态
# service redis status
// 服务启动
# service redis start
// 服务停止
# service redis stop
// 服务重启
# service redis restart

猜你喜欢

转载自www.cnblogs.com/EasonJim/p/9021920.html