Hi,
I am using MongoDB 2.8.0-rc4 on AWS EC2. When I try to start mongod as a non-root user, I get the following message
about to fork child process, waiting until server is ready for connections.
forked process: 2503
ERROR: child process failed, exited with error number 1
No log is created.
If I start with root then the only relevant message in the log is that I started as a root user and that it is not recommended.
I assigned mongod:mongod (user, group) to dbpath, logpath and to mongod executable as well.
How should I start mongod as a non-root user?
Also, how do I shutdown mongod without going through the shell? mongod --shutdown --dbpath "<path>" throws an error that there is no server running at that path when in fact there is a mongodb server running using that path.
Thank you.
Regards,
Raghava.