1. 修改 redis.conf 。 把bind 127.0.0.1 这个注释 (前面加一个#) 2.重启,这一步很重要, ./redis-server restart 3.如果有防火墙之类的要关闭。还有其他不懂的可以留言。 THX