Java连接redis, Connection refused: connect

专业打酱油 发布于 2013/05/31 14:09
阅读 49K+
收藏 1

本机,连接远程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
神马原因?

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部