最近在看jeecgboot,其整合了springboot+shiro+redis。本人没有使用过redis在程序运行成功后登录时报错:Connection refused: no further information: /127.0.0.1:6379
经研究发现:redis需要本地安装,现将安装过程写下,以便以后使用。
主要参考:https://blog.csdn.net/u012343297/article/details/78839063 感谢博主。
1、redis官方下载地址:https://redis.io/download,redis 64位下载地址:https://github.com/ServiceStack/redis-windows,本人测试使用的是redis-64.3.0.503版本。
2、修改redis.windows.conf文件,设置maxmemory 大小
3、设置redis密码
4、启动redis:进入redis目录,执行:redis-server.exe redis.windows.conf
5、将redis加入到windows的服务中
执行:redis-server –service-install redis.windows.conf –loglevel verbose会报错:-Invalid argument during startup: Failed to open the .conf
需要执行命令:redis-server --service-install redis.windows.conf --loglevel verbose 与上一命令仔细对比会发现不同之处。