你是怎么建JedisPool的呢?
JedisPoolConfig config = new JedisPoolConfig();//配置
config.setMaxActive(iMaxActive);
config.setMaxIdle(iMaxIdle);
config.setMaxWait(lMaxWait);
config.setTestOnBorrow(true);
JedisPool objJedisPool = new JedisPool(config, ip, 端口号, 超时时间);
偶是用这种方式,linux下没问题。
看下JedisPool创建前能不能取到IP等配置信息。
有异常的话,贴下异常信息