Document

windows server服务器配置 Redis(改密码 + 允许外网)

找到并修改 / 添加(搜索即可):
# 1. 默认只本机访问,要外网连就注释掉 bind 127.0.0.1
# bind 127.0.0.1

# 2. 关闭保护模式(生产一定要设密码)
protected-mode no

# 3. 设置密码(必须,否则裸奔)
requirepass 123456

# 4. 端口默认 6379
port 6379

posted @ 2026-04-29 10:16  从未被超越  阅读(23)  评论(0)    收藏  举报