1,修改redis.conf
1.将bind 127.0.0.1加上注释,(#bind 127.0.0.1),允许出本机外的IP访问redis
2.将protected-mode yes,修改为protected-mode no;不保护redis
3.将daemonize no,修改为daemonize yes;允许redis服务后台运行
4.systemctl stop firewalld.service关闭防火墙
1,修改redis.conf
1.将bind 127.0.0.1加上注释,(#bind 127.0.0.1),允许出本机外的IP访问redis
2.将protected-mode yes,修改为protected-mode no;不保护redis
3.将daemonize no,修改为daemonize yes;允许redis服务后台运行
4.systemctl stop firewalld.service关闭防火墙