1.bind 127.0.0.1改为 #bind 127.0.0.1 (注释掉) bind 成本机的ip的地址 2.protected-mode yes 改为 protected-mode no 3、重启redis