您的位置:首页 > 数据库 > Redis

redis安装配置远程连接

2017-03-23 14:55 357 查看
一.安装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 &
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: