安装请参考:Redis之在Linux上安装和简单的使用
Redis Desktop Manager安装文件:https://pan.baidu.com/s/1p8Rn_WIyVxwA3MOyAJdL0g
提取码:4e2z
在使用RedisDesktopManager无法连接Linux(centos7)的redis服务的解决方法:
1.Redis默认只支持本地链接,输入进程命令查看得知(127.0.0.1:6379)
[root@Karle src]# ps -ef | grep redis
root 5239 1 0 10:37 ? 00:00:00 ./redis-server 127.0.0.1:6379
root 5244 2321 0 10:37 pts/0 00:00:00 grep redis
问题解决:编辑redis.conf配置文件;注释掉61行本地链接限制以及80行配置修改为no
61 # bind 127.0.0.1
80 protected-mode no
此时重新启动redis,查看进程即可看到如下:
[root@Karle src]# ps -ef | grep redis
root 5391 1 0 11:05 ? 00:00:00 ./redis-server *:6379
root 5395 2321 0 11:05 pts/0 00:00:00 grep redis
2.Linux防火墙
在centos7之前是使用:service iptables status/start/stop等命令操作防火墙,在centos7使用:/bin/systemctl status/start/stop firewalld 操作防火墙。
在关闭防火墙之后,在此重启redis,点击Redis Desktop Manager的connect按钮即可成功连接。
参考:1.RedisDesktopManager连接远程Linux系统的Redis服务(图文)https://blog.csdn.net/qq_19260029/article/details/77920423
2.service iptables status/start/stop 命令失效
https://blog.csdn.net/whitemiao/article/details/78396337?utm_source=blogxgwz3
3.设置防火墙永久关闭