The error explains what's happening, you just need to break it all down:
- The command didn't work:
Error parsing command line:
- Because you didn't give it all the informatin it needed:
required parameter is missing
- The spot in your command that doesn't have enough information:
in 'dbpath'
I'm pretty sure you just need to point it to a directory for it to use.
If you look at the documentation (or run mongod --help
) you will see that you need to provide the path to your db after the --dbpath
command:
--dbpath <path>
Default: /data/db on Linux and OS X, \data\db on Windows
The directory where the mongod instance stores its data.
More info here: https://docs.mongodb.org/manual/reference/program/mongod/