关于redis集群 no reachable node in cluster的错误(在命令行正常,而在eclipse运行失败)
来源:互联网 发布:域名授权码 编辑:程序博客网 时间:2024/06/06 03:24
转载:http://blog.csdn.net/wojiushifeng1992/article/details/72904087
问题是防火墙没关,可以在命令行做以下配置即可
红色字是需要操作的,完成就ok了
[root@bogon redis-cluster]# vim /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7006 -j ACCEPT
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7001 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7002 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7003 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7004 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7005 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7006 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
~
"/etc/sysconfig/iptables" 22L, 1079C written
[root@bogon redis-cluster]# ll
total 76
drwxr-xr-x. 2 root root 4096 Jun 7 04:01 redis01
drwxr-xr-x. 2 root root 4096 Jun 7 04:01 redis02
drwxr-xr-x. 2 root root 4096 Jun 7 03:55 redis03
drwxr-xr-x. 2 root root 4096 Jun 7 04:01 redis04
drwxr-xr-x. 2 root root 4096 Jun 7 04:01 redis05
drwxr-xr-x. 2 root root 4096 Jun 7 03:55 redis06
-rwxr-xr-x. 1 root root 48141 Jun 7 01:49 redis-trib.rb
-rwxr--r--. 1 root root 270 Jun 7 02:05 start-all.sh
[root@bogon redis-cluster]# service iptables restart
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
- 关于redis集群 no reachable node in cluster的错误(在命令行正常,而在eclipse运行失败)
- 关于redis集群 no reachable node in cluster的错误(在命令行正常,而在eclipse运行失败)
- 在使用代码连接redis集群时报:no reachable node in cluster,解决办法
- liunx 集群错误 redis.clients.jedis.exceptions.JedisNoReachableClusterNode No reachable node in cluster
- redis.clients.jedis.exceptions.JedisConnectionException: no reachable node in cluster
- 解决python在eclipse运行正常在命令行里运行提示包导入错误
- Node.js在Eclipse下运行时候的几个错误!
- 在Kubernetes的3个node上部署redis cluster
- 在windows上 部署 Redis cluster模式的集群服务
- 【分布式集群】hadoop2.6.0在eclipse上的运行和命令行运行
- 在php中使用redis cluster 集群
- 关于在iis6下excel.application能够正常运行,而vista或者window7的iis7下不能运行的总结
- 在windows上搭建redis集群(redis-cluster)
- 在windows上搭建redis集群(redis-cluster)
- cocos2dx在vs运行正常,在Android编译正常,运行错误的一个原因
- Redis集群 redis cluster in 3.0
- 在eclipse中导入的工程无法正常运行
- eclipse在debug时出现"No symbol "auto" in current context."错误的解决办法
- html,css,js实现老虎机游戏以及出现的问题
- thinkphp中的多表关联查询
- jquery的after()跟append()同时添加元素之间有个莫名的 间隔(去不掉)
- bootstrap 分页表格插件
- Unity 进行曲线轨迹自定义,以及根据自定义曲线轨迹运动
- 关于redis集群 no reachable node in cluster的错误(在命令行正常,而在eclipse运行失败)
- 利用Echarts图表的tooltip在做一个图表
- 基于Anaconda的TensorFlow安装(Ubuntu 16.04 LTS)
- 无限分级类
- Nginx深入详解之upstream分配方式
- 系统强制横屏、竖屏
- exception
- 如何选择用什么语言进行网站开发
- MySql 第二部分