1、下载Redis
https://github.com/microsoftarchive/redis/releases/tag/win-3.0.504
2、安装Redis
将下载的压缩包解压到对应文件夹中(一般解压到C盘的Redis中)
3、启动redis服务器及连接redis服务器
redis-server.exe redis.windows.conf
另外在启动一个cmd
后台启动服务拓展
刚刚是不能进行后台登录(也就是终端不能关闭)
要实现终端关闭, 在进入Redis的安装目录,直接开启服务即可:
操作如下:
redis-server --service-uninstall,卸载之前的服务
redis-server --service-install redis.windows.conf --loglevel verbose,重新安装redis的服务,并且起了别名
redis-server --service-start,开启服务
redis-server –service-stop,关闭服务