Windows安装Redis

1、下载安装包

https://github.com/MicrosoftArchive/redis/releases

Redis-x64-3.2.100.msi(微软格式的安装包)

2、双击安装包开始安装,其中有一步是Add the Redis Installation folder to the path Environment Variable,勾上

3、Add an Exception to the Windows FireWall 勾上,以便其他机器可以访问进来

4、安装完成

5、启动,正常情况下安装完成后已经启动,可到 计算机-管理-服务和应用程序-服务-Redis-运行状态 查看启动状态

6、要允许外面的机器访问进来,更改redis.windows-service.conf文件的bind 127.0.0.1为0.0.0.0 并重启redis服务

各个版本的这个文件的名字可能不一样,具体的到安装的文件中找CONF文件

题外:若是下载的Redis-x64-3.2.100.zip压缩包,解压即可使用

server启动方式为Redis-server.exe redis.conf

client启动方式为Redis-cli.exe -h 127.0.0.1

题外:建议再下载一个Redis Desktop Manager,方便管理

原文地址:https://www.cnblogs.com/yb38156/p/10147854.html