MongoDB - 运行

运行

  1. mongod --dbpath <db_data_path> (mongod is the "Mongo Daemon")
  2. 在shell用mongo或者用studio 3t可视化连接

创建用户

 db.createUser({user:"root",pwd:"root",roles:["userAdminAnyDatabase"]})
posted @ 2018-06-22 22:49  Rocin  阅读(75)  评论(0编辑  收藏  举报