4
回答
Java连接redis, Connection refused: connect
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

本机,连接远程redis

iptables关了。

client ping serer OK。

server本地操作ok。

====== SET ======
  10000 requests completed in 0.11 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1

100.00% <= 0 milliseconds
93457.95 requests per second

====== GET ======
  10000 requests completed in 0.11 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1

100.00% <= 0 milliseconds
94339.62 requests per second

jedis = new Jedis(host, port);
			retStr = jedis.set("test123", "lulu");
redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused: connect
神马原因?

举报
顶部