1:注释掉 bind 127.0.0.1 2:关闭保护模式,修改为no 3:添加访问认证 root 4:重启redis ps -ef | grep redis 【查询redis占用的进程】 kill -9 进程号 【关闭当前redis进程】 即可使用外部客户端连接