请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师,你好。redis部署在远程服务器,redis-conf和sentinel-conf如何配置的问题?

sentinel-conf下的master ip地址怎么配置?redis-conf下怎么配置,这两个配置文件如何配置才能保证能被其他机器访问到(排除防火墙问题),能详细说明一下么

正在回答 回答被采纳积分+3

3回答

沧海红心 2018-01-18 16:43:14
Cannot get master address from sentinel running @ 47.94.0.48:26381. Reason: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect timed out. Trying next one.
Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: All sentinels down, cannot determine where is mymaster master is running...
	at redis.clients.jedis.JedisSentinelPool.initSentinels(JedisSentinelPool.java:180)
	at redis.clients.jedis.JedisSentinelPool.<init>(JedisSentinelPool.java:95)
	at redis.clients.jedis.JedisSentinelPool.<init>(JedisSentinelPool.java:82)
	at redis.clients.jedis.JedisSentinelPool.<init>(JedisSentinelPool.java:70)
	at redis.clients.jedis.JedisSentinelPool.<init>(JedisSentinelPool.java:59)
	at com.budongfeng.redis.redis.MyJedisSentinelPool.main(MyJedisSentinelPool.java:25)


0 回复 有任何疑惑可以回复我~
提问者 小幽默prior 2017-12-12 11:29:06


5a2f4cb9000174c605000375.jpg

5a2f4ce40001ae4f05000375.jpg
获取不到连接资源

0 回复 有任何疑惑可以回复我~
carlosfu 2017-12-09 13:53:43

麻烦贴一下你的异常。

0 回复 有任何疑惑可以回复我~
  • Cannot get master address from sentinel running @ 47.94.0.48:26381. Reason: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect timed out. Trying next one.
    Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: All sentinels down, cannot determine where is mymaster master is running...
    	at redis.clients.jedis.JedisSentinelPool.initSentinels(JedisSentinelPool.java:180)
    	at redis.clients.jedis.JedisSentinelPool.<init>(JedisSentinelPool.java:95)
    	at redis.clients.jedis.JedisSentinelPool.<init>(JedisSentinelPool.java:82)
    	at redis.clients.jedis.JedisSentinelPool.<init>(JedisSentinelPool.java:70)
    	at redis.clients.jedis.JedisSentinelPool.<init>(JedisSentinelPool.java:59)
    	at com.budongfeng.redis.redis.MyJedisSentinelPool.main(MyJedisSentinelPool.java:25)
    回复 有任何疑惑可以回复我~ 2018-01-18 16:42:47
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信