下载
右键复制下载链接:http://download.redis.io/releases/redis-5.0.5.tar.gz
安装
# 也可先在电脑上下载再上传
wget http://download.redis.io/releases/redis-5.0.5.tar.gz
tar -zxvf redis-5.0.5.tar.gz
yum install gcc-c++
cd redis-5.0.5
make MALLOC=libc
配置
vi redis.conf
开启密码:把# requirepass foobared
改为# requirepass 123456
开启AOF持久化:把appendonly no
改为appendonly yes
启动
./redis-server ../redis.conf &
关闭
redis-cli SHUTDOWN
网友评论