redis配置

bind 127.0.0.1  设置只允许本机访问

protected-mode no   保护模式设置为 no
requirepass  12346  设置redis访问密码

原文地址:https://www.cnblogs.com/Leechg/p/14241302.html