redis on windows

https://github.com/MSOpenTech/redis

下载解压

在/bin/release里还有一个压缩包,这个压缩包是生成好的

解压

运行redis-server

image

乌拉乌拉说了一堆

总之是要改一下配置文件

修改redis.windows.conf

第317行,原文内容为

# maxheap <bytes>

改为

maxheap 500m

具体多少可自己看情况定,保存之后

image

开着这个console不要关,之后可以写程序连接,或使用

redis-cli连接实验

image

安装位服务可用

image

这个命令仅为安装服务,服务并不会自动启动

image

之后需要启动服务

redis-server --service-install redis.windows.conf

redis-server --service-start

redis-server --service-stop

redis-server --service-uninstall

原文地址:https://www.cnblogs.com/czcz1024/p/4137528.html