D:\Program Files\Mongo DB\Server\3.6\bin>mongod --dbpath D:\Program Files\Mongo DB\Server\3.6\data\db
订正为
[attach]122255[/attach]
D:\Program Files\Mongo DB\Server\3.6\bin>mongod --dbpath "D:\Program Files\Mongo DB\Server\3.6\data\db"
原因:路径之中有空格会当参数来处理,需要将整个路径加上引号
2.D:\Program Files\Mongo DB\Server\3.6\bin>net start mongodb
MongoDB 服务正在启动。欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |