1、连接服务器端
redis-cli -h 127.0.0.1
2、配置密码
config set requirepass "ningbo,123"
删除配置的密码
config set requirepass ""
3、.密码登录auth 密码