Client On Error: Error: connect ETIMEDOUT 192.168.xxx.xxx:6379 Config right?Warning: ALREADY_ENABLED
创始人
2024-09-26 07:50:41
0

问题描述:

今天在Redis图形化工具尝试连接CentOS里的Redis,点击测试连接的时候报了下述这个错误

Client On Error: Error: connect ETIMEDOUT 192.168.xxx.xxx:6379 Config right?

连接redis服务器提示:Redis Client On Error: Error: connect ECONNREFUSED 127.0.0.1:6379 Config right?_redis client on error:error connect eacces-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/weixin_44629395/article/details/125405718

Warning: ALREADY_ENABLED: 6379:tcp

我的redis.conf配置:

bind 0.0.0.0

设置了 requirepass  密码

daemonize yes

问题解决 

 redis拒绝连接:Could not connect to Redis at 192.168.xx.xx:6379:Connection refused_could not connect to redis at 192.168.102.31:6379:-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/zyf_smile/article/details/120868606

conf里还是按照上述没有改动,也没有把  protected-mode 改为 no

 1、检查redis是否启动

ps -ef | grep redis 

1.1 停止当前reids 

systemctl stop redis

2、查看防火墙

firewall-cmd --list-all

2.1 将6379添加到防火墙

firewall-cmd --add-port=6379/tcp --permanent

2.2 刷新防火墙

firewall-cmd --reload

命令控制台应该会显示 success

2.3 检查是否添加成功

firewall-cmd --query-port=6379/tcp

添加成功应该显示 yes

再次输入  firewall-cmd --list-all  能看到 ports: 6379/tcp

 3、最后

启动redis

此前编写过  配置文件启动redis 

根据配置文件启动Redis: redis-server redis.conf

systemctl start redis

 参考下列文章的后台启动

Linux下安装redis并配置开机自启保姆级教程-----附带每一步截图_redis开机自启动linux-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/m0_73537205/article/details/138852023Linux 环境下指定配置启动 Redis 并设置开机自启_linux图形界面配置redis开机自启动-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/m0_60721514/article/details/123777643

没有配置启动文件的效果图 

 

配置启动文件效果图 

 

再次用图形化工具连接就能成功了

4、总结

这个问题是因为防火墙没有添加端口6379,导致Redis图形化工具无法连接Redis

若有不足之处欢迎指点

相关内容

热门资讯

透视了解"pokem... 透视了解"pokemmo脚本"果然有挂(透视)教你教程(有挂方法)1)pokemmo脚本辅助挂:进一...
透视挂透视!aapoker脚本... 透视挂透视!aapoker脚本(透视)免费透视脚本(其实存在有挂)1、进入游戏-大厅左侧-新手福利-...
透视好友房!we poker免... 透视好友房!we poker免费辅助器,原来是真的有挂(透视)我来教教你(有挂黑科技)一、we po...
透视好友"wepok... 透视好友"wepoker软件辅助程序"一直真的有挂(透视)2025新版教程(有挂解密);小薇(透视辅...
透视辅助!aapoker透视插... 透视辅助!aapoker透视插件(透视)免费透视脚本(好像存在有挂)1、许多玩家不知道aapoker...
透视讲解!wepoker私人局... 透视讲解!wepoker私人局开挂视频,果然是有挂(透视)安装教程(有挂插件);1、下载好wepok...
透视存在"wepok... 透视存在"wepoker破解器激活码"果然有挂(透视)技巧教程(有挂黑科技);1、透视存在"wepo...
透视辅助!aapoker透视怎... 透视辅助!aapoker透视怎么用(透视)插件下载(原来真的是有挂);1、aapoker透视怎么用透...
透视智能ai!wepoker透... 透视智能ai!wepoker透视脚本免费,都是有挂(透视)专业教程(有挂规律);一、wepoker透...
透视插件"newpo... 透视插件"newpoker怎么安装脚本"一贯是真的有挂(透视)详细教程(有挂技巧)1、newpoke...