在开发环境(linux)上安装了redis之后,本地无法连接,报错:Could not get a resource from the pool
问题出现的原因有很多,解决方案如下:
1.检查开发环境的防火墙是否关闭
2.检查redis配置文件是否修改:
1.bind的配置直接注释掉
2.开启守护进程:daemonize yes
3.保护模式关闭:protected-mode no
重新启动: ./redis-server ../etc/redis.conf
在开发环境(linux)上安装了redis之后,本地无法连接,报错:Could not get a resource from the pool
问题出现的原因有很多,解决方案如下:
1.检查开发环境的防火墙是否关闭
2.检查redis配置文件是否修改:
1.bind的配置直接注释掉
2.开启守护进程:daemonize yes
3.保护模式关闭:protected-mode no
重新启动: ./redis-server ../etc/redis.conf