Chapter 1 lab Creating your first application user

I tried to connect on that user using this command:

 mongod --config mongod.conf

However,the console said:

MongoDB shell version v4.0.5
connecting to: mongodb://127.0.0.1:27017/admin?gssapiServiceName=mongodb
2022-05-11T19:02:18.439+0000 E QUERY    [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed

Answered in you other thread. Please do not post the same question multiple time. It slows down everyone by have to click and read duplicate information.