关于本地连接虚拟机Redis的问题解决方法

1、注释掉配置文件redis.conf中的 

bing 127.0.0.1

​ 该配置会导致,其他ip登录被拒绝。

2、修改配置文件redis.conf中的

protected-mode no

protected-mode yes

​默认模式会造成 redis目前处于受保护模式,不允许非本地客户端链接

3、关闭虚拟机的防火墙 

bash sudo systemctl stop firewalld.service 

 

posted @ 2021-12-20 19:46  平凡鱼  阅读(396)  评论(0编辑  收藏  举报