Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions, and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster. Learn more →
# 下载资源包 cd /usr/local/src && wget https://download.redis.io/releases/redis-6.2.6.tar.gz
# 解压 tar xzf redis-6.2.6.tar.gz && cd redis-6.2.6
# 编译安装 make && make install # PS: # 问题:由于未安装gcc,导致第一次make失败,在安装gcc安装后,再次make报错fatal error: jemalloc/jemalloc.h: No such file or directory # 解决:该问题是由于第一轮make失败有残留导致,需清理后再编译,命令:make distclean && make && make install
root@vsphere162: ~ # redis-cli -h vsphere161 -a redis@Inspur.1 Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe. vsphere161:6379> ping PONG vsphere161:6379> exit