redis是什么
REmote DIctionary Server
Redis是一款开源的、高性能的键-值存储(key-value store)
1.数据全部在内存中,可用作缓存系统;
2.数据可以持久化到磁盘上,可用作高可用存储系统
安装
1. 获得稳定版安装包:wget http://download.redis.io/releases/redis-stable.tar.gz
2. tar开安装包:tar -zxvf redis-stable.tar.gz
3. 进入解压好的目录:cd redis-stable
4. 编译源码:make
5. 启动redis server:nohup ./src/redis-server > nohup.out 2>&1 &
6. 启动redis client并验证:
[bigdata@bigdata redis-stable]$ ./src/redis-cli
127.0.0.1:6379> keys *
(empty list or set)
127.0.0.1:6379> set a 1
OK
127.0.0.1:6379> get a
"1"
127.0.0.1:6379>
其他操作请查看另外笔者博文:https://blog.csdn.net/weixin_42509545/article/details/81612216