[DOCS-12327] Add Binaries to %PATH% During Windows Installation Created: 07/Jan/19  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Nicholas Larew Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

Description

To use server binaries (mongo, mongod, mongorestore, etc.) from Command Prompt or PowerShell in Windows, you must either add the binary to your system path variable or provide the full binary path. The full path is unergonomic, error-prone, and doesn't match our MacOS/*NIX docs.

Bad - Full Binary Path Name

 

"C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe" --dbpath="c:\data\db"

 

Good - Binary in System %PATH%

 

mongod --dbpath="c:\data\db"

 

To add a binary to the system path:

  1. Navigate to Control Panel > System
  2. Click Advanced or Advanced Settings
  3. Click Environment Variables
  4. Find the Path system variable and click Edit
  5. Add the path of the installed binary folder to the list
  6. Save

 

Scope of changes

Fix, test, and backport to 3.4



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 08:04:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.