mongod.exe –dbpath e:\mongo-data\db
这是我之前的方法 但是一直给我说不对 (但是为什么我也不知道)
我就把他这样写了:mongod.exe 存在默认位置
今天看到了另一个方法:mongod.exe --dbpath=e:\mongo-data\db
今天试了 是可以的
mongod.exe –dbpath e:\mongo-data\db
这是我之前的方法 但是一直给我说不对 (但是为什么我也不知道)
我就把他这样写了:mongod.exe 存在默认位置
今天看到了另一个方法:mongod.exe --dbpath=e:\mongo-data\db
今天试了 是可以的