Hi,
I use the lab on Windows 11.
I run mongod --port 27000 in one command prompt window.
The last message is: I NETWORK [thread1] waiting for connections on port 27000
Then I opened another command prompt window and issued mongod --port 27000 but I get the following:
2022-05-11T08:42:08.492+0000 I CONTROL [initandlisten] options: { net: { port: 27000 } }
2022-05-11T08:42:08.492+0000 I STORAGE [initandlisten] exception in initAndListen: 98 Unable to lock file: /data/db/mongod.lock Resource temporarily unavailable. Is a mongod instance already running?, terminating
2022-05-11T08:42:08.492+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets…
2022-05-11T08:42:08.492+0000 I NETWORK [initandlisten] shutdown: going to flush diaglog…
2022-05-11T08:42:08.492+0000 I CONTROL [initandlisten] now exiting
2022-05-11T08:42:08.492+0000 I CONTROL [initandlisten] shutting down with code:100
How can I connect to the mongodb database?