Redis操作篇
安装Redis

启动Redis服务端

流程 cmd ->D:->cd 你的服务端配置地址和启动文件
--启动服务
redis-server.exe redis.windows.conf
--不行
redis-server.exe redis.windows-service.conf
redis.windows.conf 文件设置
NETWORK注释#bind 127.0.0.1


protected-mode no 关闭保护模式,默认是yes
注册windows服务
--注册服务
redis-server --service-install redis.windows.conf
--启动服务
redis-server --service-start
cmd操作


卸载windows服务:
--停止windows服务
net stop Redis
--删除windows服务
sc delete Redis

string constr = "192.168.13.173:6379,password=123456";
RedisHelper redis = new RedisHelper(constr);
redis.Set("DeviceLayout", jsonstr);
RedisConnectionString="192.168.13.173:6379,password=123456"
启动客户端

鼠标双击 redis-cli.exe

设置Agv2 Key值

查询参数Agv2 Key值

浙公网安备 33010602011771号