![]() ![]() Where SERVICE_NAME is the name given to the mongo instance. ![]() Afterwards, remember to start the services up for the first time, either through the Windows Services GUI or the command line using: net start SERVICE_NAME The command may be run once on each machine, or serveral times on the same machine. serviceDisplayName NAME_TO_DISPLAY -install The command below is used to install MongoDB both as a service and a part of a replica set: mongod.exe -replSet NAME_OF_REPLICA_SET I assume you are somewhat familiar with MongoDB and don’t go into much detail, if you are not familiar check out the links! I will be showing the settings I use, which include creating the mongo instances as part of a replica set and exposing a RESTful service for monitoring. The following can be done from either the standard Windows command line or PowerShell. The process was relatively simple, but seems like a great bit of information to document. One of the things I had to do was set it up as a Windows service in the development servers where I work. I have been doing some development using MongoDB lately, and I have been very happy with it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |