sudo vi /etc/redis/redis.conf 参考redis网页课件 然后下面两步和网页课件不同: 1 把 bind=。。注释 2把 protected-mode yes 改成 protected-mode no