redis启动
find / -name redis-server(查找redis目录)
1.no config file specified, using the default config. In order to specify a config file
./redis-server redis.conf(conf文件路径)
2.Connection refused 拒绝访问
修改redis.conf配置文件,使用vim命令打开,找到bind那行注释,wq保存退出,重启redis-server。

3.DENIED Redis is running in protected mode (保护模式)----见上图
将redis配置文件protected-mode保护模式改为no(默认为yes)
4.Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
启动redis服务
./redis-server redis.conf
浙公网安备 33010602011771号