I want to start mongo on terminal but it gives connection error like:
I run the following commands:
rm /var/lib/mongodb/mongod.lock mongod --dbpath /var/data/mongodb --repair restart the mongodb
But unable to start mongo. When I run the following command:
mongod --profile=1 --slowms=20 --dbpath /var/data/mongodb --fork --logpath /var/log/mongodb/mongodb.log\
It works fine but log is not created inside logger.
Please help me to fix this issue this is so wierd issue for me.