输入mongod.exe--dbpath=D:\MongoDB\data后,出现警告。已经新建了data文件夹和log。
D:\mongodb\bin>mongo
MongoDB shell version v3.4.0
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.0
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
Server has startup warnings:
2016-12-19T12:01:19.211+0800 I CONTROL [initandlisten]
2016-12-19T12:01:19.212+0800 I CONTROL [initandlisten] **
WARNING: Access control is not enabled for the database.
2016-12-19T12:01:19.213+0800 I CONTROL [initandlisten] **Read and write access to data and configuration is unrestricted.
2016-12-19T12:01:19.214+0800 I CONTROL [initandlisten]
2016-12-19T12:01:19.215+0800 I CONTROL [initandlisten] Hotfix KB2731284 or later update is not installed, will zero-out data files.
2016-12-19T12:01:19.215+0800 I CONTROL [initandlisten]
>
如果不能解决你的问题丶我会惭愧
黑白狼