I had tried to start the mongodb service using the following command in linux machine.
service mongod restart
I am getting the following error
Stopping mongod: [FAILED] Starting mongod: about to fork child process, waiting until server is ready for connections. forked process: 1428 all output going to: /data/log/mongod.log child process started successfully, parent exiting
I am having the config file as follows
dbpath = /data/db/ logpath = /data/log/mongod.log logappend = true fork = true port = 27017 pidfilepath = /var/run/mongod.pid rest = true maxConns = 12000 oplogSize = 10000 directoryperdb = true keyFile = /etc/mongod.key master = true smallfiles = true
service mongod status mongod dead but subsys locked
Any suggestion will be helpful.