A.mongo -f /root/mongodb/sinleton/mongodb.cfg
B.mongod -f /root/mongodb/sinleton/mongodb.cfg
C.mongo 192.168.10.135:27017
D.以上都不正确
第7题
A.一个MongoDB中可以建立多 个数据库
B.MongoDB的默认数据库为"db
C.show dbs"命令可以显示所有数据库的列表
D.MongoDB不区分类型和大小写
第8题
A.mongostat是mongodb自带的状态检测工具
B.MongoDB中聚合(aggregate)主要用于处理数据(诸如统计平均值,求和等),并返回计算后的数据结果
C.MongoDB中使用createCollection()方法来创建集合
D.MongoDB中使用remove()方法来删除集合
第9题
B.使用MongoDB的mongorestore命令进行恢复
C.mongorestore-h-d-h表示MongoDB所在服务器地址-d表示需要备份的数据库实例的名称
D.mongodump-h dbhost-d dbname-o dbdirectory表示将主机dbhost上数据库名为dbname的库备份到dbdirectory目录下
第11题
A.进入dos命令执行D:\mongodb\bin\mongod.exe --dbpath D:\mongodb\data
B.进入dos命令执行D:\mongodb\bin\mongod.exe --config "D:\mongodb\mongod.cfg" --service
C.进入dos命令执行D:\mongodb\bin\mongod.exe --config "D:\mongodb\mongod.cfg" --uninstalled
D.进入dos命令执行D:\mongodb\bin\mongod.exe --config "D:\mongodb\mongod.cfg" --installed
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!