./mongo启动
./mongo(这两项需要添加mongodb安装路径下的bin文件夹添加到根目录下.bash_profile文件夹下,或者直接到bin下启动)
use admin
db.shutdownServer()
https://cnodejs.org/topic/504b4924e2b84515770103dd
创建用户:use admin;db.createUser({user:"xxx",pwd:"xxx",roles:[{role:"xxx",db:"xxx"}]})
命令行用户登陆:mongo admin -u {user} -p {pwd}
用户权限管理:https://www.cnblogs.com/wingjay/p/3954430.html
role类型:https://www.cnblogs.com/yangxuming/p/6498631.html
mongoose: https://www.cnblogs.com/zhongweiv/p/mongoose.html