Configuration file

Greetings to all

For configuration file my command in mongo shell is

mongod --dbpath /data/db --logpath rick/mongod.log --replSet “M103” --keyFile /data/keyfile --bind_ip “192.168.0.100,127.0.0.1” --sslMode requireSSL --sslCAFile “/etc/ssl/SSLCA.pem” --sslPEMKeyFile “/etc/ssl/ssl.pem” --auth

But it is not executing,please help.

Thanks in advance.

What error you are getting?
What does mongod.log say
Please check if mongod is up by ps -ef|grep mongod
Make sure all dirs exist and have required permissions
logpath is directed to your home dir/rick?Try to use /data/db and check

1 Like

Hi @Arsh_Deep_Singh_26375,

In addition to the points mentioned by @Ramachandra_37567, please also correct your bind_ip as “192.168.103.100,127.0.0.1”.

Please get back if you have any more questions.

Thanks,
Muskan
Curriculum Support Engineer

It gives this.

Your mongod is not up from the given output
What does mort/mongod.log shows?
Have you created keyfiles and the dirs exist
Are you able to start mongod on default port?
Just run mongod without any options and see if it starts on port 27017

1 Like