创建用户

    1. use admin;
    2. db.createUser({user:"root",pwd:"123qwe",roles:[{role:"root",db:"admin"}]})
    3. db.createUser({user:"bwgame",pwd:"Qaz123",roles:[{role:"readWrite",db:"integrated_platform"}]})
    4. db.createUser({user:"bwgame",pwd:"Qaz123",roles:[{role:"readWrite",db:"integrated_platform_admin"}]})

    yapi安装
    https://github.com/hellosean1025/yapi_user_guide/blob/master/mac%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE.md

    1. db.createUser({user:"artipub",pwd:"123qwe",roles:[{role:"readWrite",db:"artipub"}]})
    2. db.createUser({user:"user1",pwd:"123qwe",roles:[{role:"readWrite",db:"game_test"}]})
    3. db.createUser({user:"root",pwd:"123qwe",roles:[{role:"dbAdmin",db:"game_test"}]})
    4. export PATH=/Users/apple/soft/mongodb/bin:$PATH
    5. db.createUser({user:"root",pwd:"123qwe",roles:[{role:"dbAdmin",db:"admin"}]})