禁用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

# protectedmode默认yes修改no

protectedmode 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/

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注