Last active
April 10, 2019 04:26
-
-
Save ezirmusitua/08b8f0beac6cdcdbabed248a2d79f6aa to your computer and use it in GitHub Desktop.
[Run mongod as service] Run mongod as windows service #mongo #windows
This file contains hidden or 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
# create service | |
mongod --dbpath "E:\MongoDB\data" --logpath "E:\MongoDB\log\logs.txt" --install --serviceName "MongoDB" | |
# delete service | |
mongod --remove --serviceName "MongoDB" | |
sc delete "MongoDB" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment