1.config get reuqirepass //获取当前密码 2.config set requirepass "password"//设置当前密码,双引号里面为密码 转载于:https://www.cnblogs.com/innershare/p/10999335.html