公众号:
默认安装启动redis后,只能本地连接,无法远程连接上,原因是redis安全策略默认本机访问,所以远程访问的话需要将
配置文件redis.cof 中的 bind 127.0.0.1 前面的#注释掉,
有时仅仅注释掉这些还不行,因为新版本增加了保护模式,具体提示信息
DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients.
In this mode connections are only accepted from the loopback interface.
If you want to connect from external computers to R