首先要在启动redis的默认配置文件中 /myredis/redis.conf 这里找到
bind=127.0.0.1并把它注释掉
然后找到、
protected-mode
并把它设置为no
这样就可以在其他端口号访问了