I would like to run mongodb on vagrant
,I have used the following command:
sudo mongod --fork --logpath /var/log/mongodb.log --dbpath ./data
I have also tried modifying the above statement with all(cumulatively) and each of these options:
--logappend
--journal
--port 27017 and --port 27018
I get this error(with request to add journaling for durability and a notification that mongod will copy log to temporary file if journaling or logappend are disabled):
forked process: 5360
all output going to: /var/log/mongodb.log
ERROR: child process failed, exited with error number 100
I already have mongodb
installed on my pc and it uses 27017
as the port
,will this conflict with the error in running mongod