Redis 的安装

2020-03-25  本文已影响0人  码农UP2U

Redis 是一种支持多种数据结构的缓存,也是一种存储。具体看 Redis 的官网

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries 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.

它的安装比较容易,具体如下:

cd /usr/src
wget http://download.redis.io/releases/redis-5.0.8.tar.gz
tar xf redis-5.0.8.tar.gz
cd redis-5.0.8
make
make PREFIX=/usr/local/redis install
cd /usr/local/redis
cp /usr/src/redis-5.0.8/redis.conf ./
cd /usr/local/redis
./bin/redis-server redis.conf


微信中搜索 “码农UP2U” 关注我的公众号吧!!!
上一篇下一篇

猜你喜欢

热点阅读