Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ action:
language: powershell
copyable: true
code: |
"C:\Program Files\MongoDB\Server\{+version+}\bin\mongod.exe" --config "C:\Program Files\MongoDB\Server\{+version+}\mongod.cfg" --install
"C:\Program Files\MongoDB\Server\{+version+}\bin\mongod.exe" ^
--config "C:\Program Files\MongoDB\Server\{+version+}\mongod.cfg" ^
--install
post: |
To use an alternate :setting:`dbpath`, specify the path in the
configuration file (e.g. ``C:\mongodb\mongod.cfg``) or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ action:
language: powershell
copyable: true
code: |
sc.exe create MongoDB binPath= "\"C:\Program Files\MongoDB\Server\{+version+}\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB\Server\{+version+}\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"
sc.exe create MongoDB ^
binPath= "\"C:\Program Files\MongoDB\Server\{+version+}\bin\mongod.exe\" ^
--service --config=\"C:\Program Files\MongoDB\Server\{+version+}\mongod.cfg\"" ^
DisplayName= "MongoDB" start= "auto"
post: |
``sc.exe`` requires a space between "=" and the configuration values
(eg "binPath= "), and a "\\" to escape double quotes.
Expand Down