LAB: Logging to a Different Facility v2

THis is my config.cfg file:

storage:
dbPath: /var/mongodb/db
net:
bindIp: “127.0.0.1,192.168.103.100”
port: 27000
security:
authorization: enabled
systemLog:
destination: file
path: /var/mongodb/db/mongod.log
logAppend: true
operationProfiling:
mode: “slowOp”
slowOpThresholdMs: 50

When I run it I get a blank line but nothin occurs…

If I run a previous config.cfg file it’s working…

Help. What can I do?

Thanks a lot !!!

Xavi

Hi @xgubianas,

Please re-check your config file. You need to add the --fork option as it will enable daemon mode that runs mongod process in the background.

I hope it helps!!
If this is not the issue, please share the screenshot of your command as well as the error message.

Thanks,
Sonali