I am trying to start mongod with the following command >
mongod --port 27000 --logpath //home/vagrant/first_mongod/mongod.log
getting the following error >
about to fork child process, waiting until server is ready for connections.
forked process: 1641
child process started successfully, parent exiting
when I check for the process I can see its up but I am not redirected to the mongod prompt
vagrant@m103:~/first_mongod$ ps -ef | grep mongo
vagrant 1641 1 1 09:49 ? 00:00:01 mongod --port 27000 --logpath /home/vagrant/first_mongod/mongod.log --fork
vagrant 1672 1415 0 09:51 pts/0 00:00:00 grep --color=auto mongo
If I kill the process and run again without --fork I get the below output and it just hangs
2019-11-18T09:53:21.239+0000 I CONTROL [main] log file “/home/vagrant/first_mongod/mongod.log” exists; moved to “/home/vagrant/first_mongod/mongod.log.2019-11-18T09-53-21”.
My vagrant is running on Windows 10 machine .
Appreciate the help
Thanks