Redis使用教程

Redis资料收集

1、Redis中文官网 http://www.redis.cn/

2、Redis中文网 https://www.redis.net.cn/

3、Redis安装教程 https://www.runoob.com/redis/redis-install.html

4、Redis GUI管理工具,推荐Redis Desktop Manager,或者AnotherRedisDesktopManager

5、Redis开启和关闭 https://blog.csdn.net/u013829518/article/details/82622068

Redis基本配置

1、允许远程连接

① 修改redis文件夹下redis.conf文件

a 将 bind 127.0.0.1 使用#注释掉,改为# bind 127.0.0.1(bind配置的是允许连接的ip,默认只允许本机连接;若远程连接需注释掉,或改为0.0.0.0)

b 将 protected-mode yes 改为 protected-mode no(3.2之后加入的新特性,目的是禁止公网访问redis cache,增强redis的安全性)

c 将 requirepass foobared 注释去掉,foobared为密码,也可修改为别的值(可选,建议设置)

② 启动redis,并指定配置文件

./redis-server ../redis.conf

原文地址:https://www.cnblogs.com/hans_gis/p/12423888.html