Problem in creating first user application

user@M103# ps aux | grep mongod
227 root 0:01 mongod --port 27000 --dbpath /var/mongodb/db --auth --logpath /var/mongodb/logs/mongod.log --logappend --fork
377 root 0:00 grep mongod
user@M103# mongod --port 27000 --dbpath /var/mongodb/db --auth --logpath /var/mongodb/logs/mongod.log --logappend --fork
about to fork child process, waiting until server is ready for connections.
forked process: 385
ERROR: child process failed, exited with error number 48
To see additional information in this output, start without the “–fork” option.
user@M103# mongod --port 27000 --dbpath /var/mongodb/db --auth --logpath /var/mongodb/logs/mongod.log --forkabout to fork child process, waiting until server is ready for connections.
forked process: 390
ERROR: child process failed, exited with error number 48
To see additional information in this output, start without the “–fork” option.
user@M103# ps aux | grep mongod
227 root 0:02 mongod --port 27000 --dbpath /var/mongodb/db --auth --logpath /var/mongodb/logs/mongod.log --logappend --fork
394 root 0:00 grep mongod
user@M103#

Your first command shows your mongod is up & running
No need to run again and again
The subsequent runs are failing wit error 48 as you already have a mongod running on same port,dbpath
All you have to do is connect to your mongod and create the user

1 Like