一、注册服务1.注册服务mongod.exe--install--dbpath=d:\mongodb\data--logpath=d:\mongodb\log\log.log-auth-serviceName"serviceName"2.卸载服务mongod.exe--remove--serviceName"serviceName"3.启动服务netstartserviceName4.停止服务netstopserviceName二、授权1.添加超级用户1.1进入admin库useadmin;1.2添加用户db.addUser("userName&qu