Client On Error: Error: connect ETIMEDOUT 192.168.xxx.xxx:6379 Config
题目描述:本日在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博客https://csdnimg.cn/release/blog_editor_html/release2.3.6/ckeditor/plugins/CsdnLink/icons/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博客https://csdnimg.cn/release/blog_editor_html/release2.3.6/ckeditor/plugins/CsdnLink/icons/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博客https://csdnimg.cn/release/blog_editor_html/release2.3.6/ckeditor/plugins/CsdnLink/icons/icon-default.png?t=N7T8https://blog.csdn.net/m0_73537205/article/details/138852023Linux 情况下指定设置启动 Redis 并设置开机自启_linux图形界面设置redis开机自启动-CSDN博客https://csdnimg.cn/release/blog_editor_html/release2.3.6/ckeditor/plugins/CsdnLink/icons/icon-default.png?t=N7T8https://blog.csdn.net/m0_60721514/article/details/123777643
没有设置启动文件的结果图
https://i-blog.csdnimg.cn/direct/a13d9a764c1c41c3bd89899be7c84f57.png
设置启动文件结果图
https://i-blog.csdnimg.cn/direct/6e54a56a22a44092a4be8b3121d56304.png
再次用图形化工具毗连就能成功了
4、总结
这个题目是因为防火墙没有添加端口6379,导致Redis图形化工具无法毗连Redis
若有不敷之处接待指点
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]