允许远程连接Redis

1.修改服务器防火墙使63797端口放行

2.修改redis.conf配置文件

# 允许任何主机连接、访问
bind 127.0.0.1 改为 bind 0.0.0.0
 
# 关闭保护模式
protected-mode yes 改为 protected-mode no
 
# 允许启动后在后台运行,即关闭命令行窗口后仍能运行
daemonize no 改为 daemonize yes

修改完后,需要重新启动redis

3.运行方式

启动方式需要选择指定的配置文件,如:

redis-server redis.conf
原文地址:https://www.cnblogs.com/whyblogs/p/15058397.html