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
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