I was trying to run MongoDB:
E:\\mongo\\bin>mongod
mongod --help for help and startup options
Sun Nov 06 18:48:37
Sun Nov 06 18:48:37 warning:
The very simplest approach given by mongo README help file
RUNNING
For command line options invoke:
$ ./mongod --help
To run a single server database:
$ sudo mkdir -p /data/db
$ ./mongod
$
$ # The mongo javascript shell connects to localhost and test database by default:
$ ./mongo
> help
If you are working with windows, go to your directory where you have mongo.exe
use the following commands, (I am sharing mine)
C:\Program Files\MongoDB\Server\3.6\bin>mkdir \data
C:\Program Files\MongoDB\Server\3.6\bin>mkdir \data\db
C:\Program Files\MongoDB\Server\3.6\bin>mongod ## this will start your mongoDB server
Now you need to run another CMD prompt and go to the directory where you have mongo and just run it
C:\Program Files\MongoDB\Server\3.6\bin>mongo ## this will start your mongoDB client
Hope it helped :)
If it doesn't work, run CMD as an administrator