1. 配置密码,找到 redis.windows.conf 配置文件
# Require clients to issue AUTH <PASSWORD> before processing any other
# commands. This might be useful in environments in which you do not trust
# others with access to the host running redis-server.
#
# This should stay commented out for backward compatibility and because most
# people do not need auth (e.g. they run their own servers).
#
# Warning: since Redis is pretty fast an outside user can try up to
# 150k passwords per second against a good box. This means that you should
# use a very strong password otherwise it will be very easy to break.
#
#这里配置密码,密码root(www.fhadmin.org)
requirepass root
# Command renaming.
#
# It is possible to change the name of dangerous commands in a shared
# environment. For instance the CONFIG command may be renamed into something
# hard to guess so that it will still be available for internal-use tools
# but not available for general clients.
2.制作启动脚本。用写字本编辑后,保存为bat格式
redis-server.exe redis.windows.conf
3. java springboot 链接 redis
#===========Redis配置====fhadmin.org=======
# Redis数据库索引(默认为0)
spring.redis.database=0
# Redis服务器地址
spring.redis.host=127.0.0.1
# Redis服务器连接端口
spring.redis.port=6379
# Redis服务器连接密码(默认为空)
spring.redis.password=root
# 连接池最大连接数(使用负值表示没有限制)
spring.redis.pool.max-active=200
# 连接池最大阻塞等待时间(使用负值表示没有限制)
spring.redis.pool.max-wait=-1
# 连接池中的最大空闲连接
spring.redis.pool.max-idle=10
# 连接池中的最小空闲连接
spring.redis.pool.min-idle=0
# 连接超时时间(毫秒)
spring.redis.timeout=2000ms
spring.redis.jedis.pool.max-wait=-1ms
#===========Redis配置====fhadmin.org=======
---------------------------www.fhadmin.org--------------- 论坛模块
20. 板块管理:增删改查板块信息, 上传封面图, 板块状态开关, 排序
21. 主题管理:条件检索、置顶及取消、设置精华及取消、删除,回收站还原主题
22. 回帖管理:条件检索、查看帖子、删除、回收站还原帖子
23. 版主管理:增删改查板主,设置版主权限,板块全站权限、禁言权限,删帖权限
24. 禁言管理:检索、删除禁言名单,修改禁言截止日期
25. 栏目管理:维护论坛首页的菜单栏目,排序、状态开关、修改是否打开新页面还是站内