[SERVER-14263] Installer should install MongoDB as a service on Windows Created: 16/Jun/14  Updated: 29/Jun/18  Resolved: 11/Dec/17

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.6.3
Fix Version/s: 3.7.1

Type: Improvement Priority: Major - P3
Reporter: Andrew Davidson Assignee: Mark Benvenuto
Resolution: Done Votes: 1
Labels: build-later, community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-11204 Installer should install MongoDB as a... Closed
Duplicate
is duplicated by SERVER-16771 provide installation options for wind... Closed
Related
related to SERVER-13515 Cannot install MongoDB as a service o... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-12-18
Participants:

 Description   

Installing MongoDB as a service on Windows should not require command line intervention. The MSI installer should take care of it.



 Comments   
Comment by Githook User [ 11/Dec/17 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-14263 Install MongoDB as service on Windows
Branch: master
https://github.com/mongodb/mongo/commit/2ea580cd77382a841c7cd6c8097cfd3d195698f0

Comment by Michael Dolinsky [ 24/Dec/15 ]

Hi,

We are also very interested in this feature as the current state really complicates the deployment code for our product (we install mongodb as part of our product deployment).
We would like to have support for a silent MSI installation that includes all of the functionality the mongod.exe install option has (so basically copying it up to the MSI)
And we would really benefit from this if this could be done by the end of January as it has big implication on our deployment.

Thanks,
Michael.

Comment by Matt Kangas [ 08/Jan/15 ]

Additional comments provided by wallaceturner originally on SERVER-16771:


This discussion first started in the forum [1]

The request is to be able to install MongoDB on windows and not have to do any manual tasks to get the database running.
Currently you have to:
1) open an admin cmd prompt
2) create the data directory (md \data\db)
3) create log and cfg file for service
4) run command to install as service

all things could be solved (on the windows installer) by having 3 extra options (filled in by default)

1) [Install Location] (textbox, default C:\program files\mongo x)
2) [Data Location] (textbox, default C:\data\db)
3) [Install as Service] (checkbox, checked, default)

The idea is to make the process as straight forward for users who are new to MongoDB

[1]: https://groups.google.com/forum/#!topic/mongodb-user/fk8pxE4gzO4

Comment by Mark Benvenuto [ 19/Jun/14 ]

1. What do you want the user experience to be? Do you want it to be a feature in the feature tree, or should this be part of some of the existing components?
2. Do we want the user opt in or out? What should be the default?
3. When you say "MongoDB as a service", do you mean MongoD and/or MongoS?
4. What SID should we install as?
5. Do you want this to drive off a config file like our RPMs/DEBs? Yaml or Old?
6. Should we punch holes though the firewall also? Or restrict this to be local host only by default?

Generated at Thu Feb 08 03:34:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.