Open ourfor opened 3 years ago
dnf install redis -y systemctl enable redis systemctl start redis firewall-cmd --zone=public --permanent --add-service=redis firewall-cmd --reload
/etc/redis.conf中注释掉bind 127.0.0.1, 并通过requirepass your-password设置密码
/etc/redis.conf
bind 127.0.0.1
requirepass your-password