链接 mongo dds-*****.aliyuncs.com:3717 授权 use admin db.auth('user*****','K*******') 1 创建用户 use user db.createUser({user:'user', pwd:'******', roles:[{role:'dbOwner', db:'user'}]})