Redis protected-mode 参数分析

Redis3.2版本后新增protected-mode配置,默认是yes,即开启。protected-mode设置为不同值时的效果如下:

protected-mode值 效果
no 关闭protected-mode模式,此时外部网络可以直接访问
yes 开启protected-mode保护模式,需配置bind ip或者设置访问密码

想要在外部访问服务器中的Redis 除了需要设置 protected-mode no ,还需将 redis.conf 文件中的bind:127.0.0.1语句注释

你可能感兴趣的:(Redis,linux编程,redis,linux,protected-mode,protected)