IDEA连接Redis注意事项
禁用Linux防火墙
[atguigu@hadoop102 ~]$ sudo systemctl stop firewalld
[atguigu@hadoop102 ~]$ sudo systemctl disable firewalld
修改redis.conf
# 注释掉bind 127.0.0.1
# bind 127.0.0.1
# protected-mode默认为yes,修改为no
protected-mode no
logfile /opt/module/redis-6.0.8/redis.log
dir /opt/module/redis-6.0.8
修改权限
#关闭redis服务出现这个异常
#(error) ERR Errors trying to SHUTDOWN. Check logs.
#查看日志权限不够,不能保存redis数据到数据库
#Error trying to save the DB, can't exit.
#修改权限后解决
[atguigu@hadoop102 module]$ sudo chmod 777 redis-6.0.8/