- 打开官网复制下载链接
- 用wget命令下载指定文件
- 用
tar -zxvf redis.tar.gz
解压 - 在解压后的文件夹内执行安装命令
make PREFIX=/usr/local/redis install
,其中目录是安装文件夹 - 复制一份conf文件到目录下
cp redis.conf /usr/local/redis/bin/
- 启动redis
cd /usr/local/redis/bin
./redis-server /usr/local/redis/bin/redis.conf
tar -zxvf redis.tar.gz
解压make PREFIX=/usr/local/redis install
,其中目录是安装文件夹cp redis.conf /usr/local/redis/bin/
cd /usr/local/redis/bin
./redis-server /usr/local/redis/bin/redis.conf