下载
-
https://redis.io/
1.png
编译
将下载后的解压,在终端中进入解压后的目录,执行make指令对redis进行编译
安装
make install PREFIX=/usr/local/redis/

启动
- 前台启动,进入redis安装目录后,直接执行/bin目录下的redis-server

- 后台启动
- 修改配置文件,在开始下载解压后的redis文件夹中找到redis.conf文件拷贝至redis的安装目录
- 将 daemonize 修改为yes
vim ./redis.conf

./bin/redis-server ./redis.conf
ps -ef|grep -i redis

./bin/redis-cli shutdown

网友评论