一.安装redis
linux上直接yum安装
yum install redis
windows版本下载地址
https://github.com/ServiceStack/redis-windows
二.配置文件修改
1.密码修改
vi /etc/redis.conf
#修改密码
requirepass 123456888888
2.开启远程访问
#注释掉下面这行,否则绑定本地ip
#bind 127.0.0.1
3.关闭保护模式,否则无法远程访问
# By default protected mode is enabled. You should disable it only if
protected-mode no
三.启动redis
redis-server /etc/redis.conf &
本文介绍如何在Linux和Windows系统上安装Redis,并详细说明了配置文件的修改步骤,包括设置密码、开启远程访问及关闭保护模式。

被折叠的 条评论
为什么被折叠?



