码迷,mamicode.com
首页 > 其他好文 > 详细

Redis使用教程

时间:2020-03-06 01:00:29      阅读:51      评论:0      收藏:0      [点我收藏+]

标签:ref   推荐   not   other   安全   增强   man   安装教程   serve   

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

Redis使用教程

标签:ref   推荐   not   other   安全   增强   man   安装教程   serve   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!