Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Redis pool=new JedisPool(new JedisPool config(),IPADDRESS)不工作_Redis_Connection Pooling_Remote Access_Remote Server_Jedis - Fatal编程技术网

Redis pool=new JedisPool(new JedisPool config(),IPADDRESS)不工作

Redis pool=new JedisPool(new JedisPool config(),IPADDRESS)不工作,redis,connection-pooling,remote-access,remote-server,jedis,Redis,Connection Pooling,Remote Access,Remote Server,Jedis,我的问题很有解释性,我无法使用上述语句访问远程绝地服务器。以下是代码的一些细节: 静态假脱机池; 私人绝地武士 静止的{ pool=new JedisPool(new JedisPool config(),“A.B.C.D”);//A.B.C.D==替换为ip地址 } jedis=pool.getResource() 但是无法连接到远程redis服务器您应该提供更多信息,因为我刚刚检查过,它对我有效。好的,让我知道我还应该提供什么。正如您编写的代码,不应该编译:“jedis=pool.getRe

我的问题很有解释性,我无法使用上述语句访问远程绝地服务器。以下是代码的一些细节:

静态假脱机池; 私人绝地武士

静止的{ pool=new JedisPool(new JedisPool config(),“A.B.C.D”);//A.B.C.D==替换为ip地址 } jedis=pool.getResource()


但是无法连接到远程redis服务器

您应该提供更多信息,因为我刚刚检查过,它对我有效。好的,让我知道我还应该提供什么。正如您编写的代码,不应该编译:“jedis=pool.getResource();”放错了位置。