Problems with MongoDB using command line configuration

I encountered some problems when configuring mongodb with the command line, and my mind was a little dizzy

At first I thought it was my environment configuration error or the wrong command.

It was later discovered that the configuration path does not support relative paths, and must be written in full, such as D:\mongodb\db\ huo ./mongodb/db/

I hope not to make the same mistakes in the future, and developers should also consider these small details during installation.

For such a small problem, it is best to give a more clear prompt

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324118273&siteId=291194637