C:\Program Files\MongoDB\Server\3.6\bin>mongod
2018-06-08T20:40:05.925-0700 I CONTROL [initandlisten] MongoDB starting : pid=1028 port=27017 dbpath=C:\data\db\ 64-bit
host=DESKTOP-13Q62I8
2018-06-08T20:40:05.925-0700 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2018-06-08T20:40:05.927-0700 I CONTROL [initandlisten] db version v3.6.4
2018-06-08T20:40:05.929-0700 I CONTROL [initandlisten] git version: d0181a711f7e7f39e60b5aeb1dc7097bf6ae5856
2018-06-08T20:40:05.930-0700 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2o-fips 27 Mar 2018
2018-06-08T20:40:05.931-0700 I CONTROL [initandlisten] allocator: tcmalloc
2018-06-08T20:40:05.931-0700 I CONTROL [initandlisten] modules: none
2018-06-08T20:40:05.932-0700 I CONTROL [initandlisten] build environment:
2018-06-08T20:40:05.933-0700 I CONTROL [initandlisten] distmod: 2008plus-ssl
2018-06-08T20:40:05.934-0700 I CONTROL [initandlisten] distarch: x86_64
2018-06-08T20:40:05.934-0700 I CONTROL [initandlisten] target_arch: x86_64
2018-06-08T20:40:05.935-0700 I CONTROL [initandlisten] options: {}
2018-06-08T20:40:05.939-0700 I STORAGE [initandlisten] exception in initAndListen: DBPathInUse: Unable to create/open the lock file:
C:\data\db\mongod.lock (The process cannot access the file because it
is being used by another process.). Ensure the user executing mongod
is the owner of the lock file and has the appropriate permissions.
Also make sure that another mongod instance is not already running on
the C:\data\db\ directory, terminating
2018-06-08T20:40:05.940-0700 I CONTROL [initandlisten] now exiting
2018-06-08T20:40:05.941-0700 I CONTROL [initandlisten] shutting down with code:100