Redis客户端连接异常:Could not get resource from the pool 解决办法
来源:互联网 发布:ipad软件下载专区 编辑:程序博客网 时间:2024/04/28 01:33
不能从连接池获取连接的最大可能是,Redis服务器所在的主机中防火墙没有开放redis的端口,开放方式是:
/etc/sysconfig/iptables
在iptables文件中加入
-A INPUT -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT
重启iptables
service iptables restart
问题解决了!
还有一种可能是redis.conf文件中绑定的ip设定为127.0.0.1,这样的话,就会造成连接不上的问题,解决办法是注释掉这段代码,或者绑定客户端的ip
1)注释掉
#bind 127.0.0.1
2) 加入我客户端的ip是192.168.1.11 ,而redis服务器所在的ip是192.168.1.12,我们需要在redis服务器中修改redis.conf这个文件,将ip绑定为我客户端的ip
#bind 192.168.1.11
问题解决了!
转载:http://blog.csdn.net/qinsihang/article/details/20146757
0 0
- Redis客户端连接异常:Could not get resource from the pool 解决办法
- Redis客户端连接异常:Could not get resource from the pool 解决办法
- redis---Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- redis JedisConnectionException: Could not get a resource from the pool
- Redis:Could not get a resource from the pool
- 急求大婶指导redis Could not get a resource from the pool 异常
- redis中 Could not get a resource from the pool 异常解决
- 异常:redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- 处理应用端连接redis报could not get a resource from the pool问题
- redis提示Could not get a resource from the pool(jedis连接池配置)
- Java Jedis远程连接redis异常解决思路,异常描述:Could not get a resource from the pool && connect timed out
- java连接linux里的redis数据库报:Could not get a resource from the pool解决方法
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- 数字三角形问题(动态规划)
- Material Design学习之 Camera
- Visual Studio原生开发的10个调试技巧
- [FAQ07639][Camera Tuning]MT6589 CCT问题总结以及新issue反馈时需提供的信息
- 如何通过最大用户并发数来确定系统最大用户数
- Redis客户端连接异常:Could not get resource from the pool 解决办法
- SAP crm webui 搜索问题:BSP_DLC_DELETE_PERSONALIZATION 清除个性化设置
- linux使用技巧积累
- java提高篇(三)-----java的四舍五入
- 微信第三方登录
- 将ubuntu默认的中文文件夹名称改英文
- SQL Server强密码要求
- ibatis/mybatis 里mysql 查询行号,@
- C语言中的#作用