Created
January 28, 2016 18:38
-
-
Save dineshsprabu/3aa17ffb254e0e655670 to your computer and use it in GitHub Desktop.
Keep your mongod running on the server as a service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The following command will make a fork form the main process | |
It will log console data to the log file mentioned */ | |
mongod --dbpath='./data' --fork --logpath ./mongod.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment