exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the ‘storage.dbPath’ option in the configuration file., terminating
after this it kicks me out of the mongod and I am able to write in the hyper terminal. So my server is not starting
How did you start your mongod?
If you have issued just mongod it will start on default port 27017 and default dirpath c:/data/db
Since dir is missing it is exiting
You need to create the directory
Since you are on Windows if you installed mongod as service it uses proper mongod.conf
The message clearly indicate that the
The simplest solution is to create the directory as hinted by the rest of the error message
You may create the missing directory using the command mkdir.