修改 redis.conf
1、开放防火墙端口
2、
# 允许任何主机连接、访问 bind 127.0.0.1 改为 bind 0.0.0.0 # 关闭保护模式 protected-mode yes 改为 protected-mode no # 允许后台运行 daemonize no 改为 daemonize yes
# 改密码
requirepass 你的密码
之后重启
要是重启了还不能远程连接,试试命令行终端输入 config set requirepass 你的密码
修改 redis.conf
1、开放防火墙端口
2、
# 允许任何主机连接、访问 bind 127.0.0.1 改为 bind 0.0.0.0 # 关闭保护模式 protected-mode yes 改为 protected-mode no # 允许后台运行 daemonize no 改为 daemonize yes
# 改密码
requirepass 你的密码
之后重启
要是重启了还不能远程连接,试试命令行终端输入 config set requirepass 你的密码
上一篇:redis持久化AOF
下一篇:redis 构建主从复制架构
_hba.conf,配置用户的访问权限vim /etc/postgresql/9.1/main/pg_hba.conf如下:# "local" is for Unix domain s
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M