本机,连接远程redis
iptables关了。
client ping serer OK。
server本地操作ok。
本地操作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 `
请问是什么原因?