Redis在Linux上面安装
1 下载Redis:https://redis.io/download
下载完成之后:redis-4.0.11.tar.gz
2 将下载的压缩包传到linux对应文件夹下面(笔者上传到/opt/下面)
3 进入opt文件夹(cd /opt)
解压redis压缩包
tar -zxvf redis-4.0.11.tar.gz
得到文件夹 redis-4.0.11/
4 进入redis-4.0.11文件夹下面的src文件夹
5 编译src文件夹下面源码
make install
最后出现:
则安装成功
6 安装完毕之后在/usr/local/bin下面有如下文件:
-rwxr-xr-x 1 root root 2791168 Aug 29 15:43 redis-benchmark*
-rwxr-xr-x 1 root root 6398472 Aug 29 15:43 redis-check-aof*
-rwxr-xr-x 1 root root 6398472 Aug 29 15:43 redis-check-rdb*
-rwxr-xr-x 1 root root 3005608 Aug 29 15:43 redis-cli*
lrwxrwxrwx 1 root root 12 Aug 29 15:43 redis-sentine
7 启动 登陆 关闭
启动:redis-server(redis-server redis.conf)
登陆:redis-cli(redis-cli -p 6379)
关闭:redis-cli shutdown
参考:https://blog.csdn.net/jiangdong2007/article/details/80890236
https://www.cnblogs.com/codersay/p/4301677.html
https://blog.csdn.net/chenxiansheng888/article/details/78505718
https://blog.csdn.net/u013519290/article/details/73196370/