redis远程连接配置,相关配置详解

下面要给大家分享的是使用RedisDesktopManager远程连接VM Ware上的Redis的方法,一起来看看吧。

1、首先要使用命令去pingLinux系统的IP地址,看一下网络是否连通。

#
Linux下查看ip地址, 下图中ens33中的intel即为Linux的IP地址
ifconfig - a

2、之后关闭Linux的防火墙或者是做防火墙的端口映射。

#
查看防火墙状态, 两个命令均可
service firewalld status / systemctl status firewalld# 关闭防火墙, 两个命令均可
service firewalld stop / systemctl stop firewalld# 禁止防火墙开机启动
systemctl disable firewalld.service / systemctl disable firewalld# 开放6379端口
firewall - cmd--permanent--zone = public--add - port = 6379 / tcp# 重新载入配置
firewall - cmd--reload

3、之后修改redis.conf,把bind 127.0.0.1修改为0.0.0.0。

经过了上面的操作之后,就能够远程连接Redis啦!

更多Redis常见问题及其解决方法,请继续通过奇Q工具网的常见问题栏目的内容来了解和解决吧!

推荐阅读:

redisserver一闪而过是怎么回事?redis启动一闪而过怎么办?

redis集群的优缺点,5种使用方式优缺点介绍

redis常见面试题有哪些?redis集群面试题及答案整理