1、将redis.conf中 bind 127.0.0.1 改为 bing 0.0.0.0 //允许所有ip访问
2、将redis.conf中 protected-mode yes 改为 protected-mode no //无需密码
3、重启redis
./redis-cli shutdown
./redis-server redis.conf
1、将redis.conf中 bind 127.0.0.1 改为 bing 0.0.0.0 //允许所有ip访问
2、将redis.conf中 protected-mode yes 改为 protected-mode no //无需密码
3、重启redis
./redis-cli shutdown
./redis-server redis.conf