教程Redis安装(Windows & macOS)

Posted 双份浓缩馥芮白

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了教程Redis安装(Windows & macOS)相关的知识,希望对你有一定的参考价值。

✨Redis

官方网站:https://redis.io/

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.


✨Windows

Releases · tporadowski/redis (github.com)

点击进入 Redis for Windows

下载 msi 或者 zip

(建议下载zip,msi安装后可能遇到闪退等问题)


下载后解压

双击 redis-server.exe 即可启动


✨macOS

方式一

进入官网下载

https://redis.io/download

下载 Stable(稳定版)

解压文件

tar zxvf redis-6.2.6.tar.gz

把下载后的 redis-6.2.6.tar.gz 放到 /usr/local/

sudo mv redis-6.2.6 /usr/local/

切换目录

cd /usr/local/redis-6.2.6/

编译

sudo make

提示:Hint: It\'s a good idea to run \'make test\'

以上是关于教程Redis安装(Windows & macOS)的主要内容,如果未能解决你的问题,请参考以下文章

Redis安装大全涵盖Windows Linux Docker

windows安装redis及配置教程

小记:Windows redis引发的一场血案(Cannot get Jedis connection&&java.util.NoSuchElementException Unable

Windows下安装Redis及php的redis拓展教程

Windows下安装Redis及php的redis拓展教程

Redis Windows 64位下安装Redis详细教程