Review and Update MongoDB for Windows Install Guide (DOCS-11434)

[DOCS-10233] Fix YAML format for MongoDB Windows mongod.cfg example Created: 09/May/17  Updated: 30/Oct/23  Resolved: 05/Jun/18

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

Type: Sub-task Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Anthony Sansone (Inactive)
Resolution: Fixed Votes: 0
Labels: collector-298ba4e7, installation, windows, yaml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-windows/#run-mongodb-enterprise

Location: https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-windows/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36
Referrer: https://docs.mongodb.com/manual/installation/
Screen Resolution: 1920 x 1080


Participants:
Days since reply: 6 years, 40 weeks, 1 day ago
Story Points: 0.2

 Description   

On the part about setting up the mongod.cfg file, it needs to be stated that this is a YAML file, tabs are not recognized, any paths used need to be enclosed in double quotes and the backslashes escaped. As such, the APPROPRIATE example displayed would be:

systemLog: 
    destination: file
    path: "c:\\data\\mongod.log"
storage:
    dbPath: "c:\\data\\db"

The answer for this was found on StackOverflow at:

http://stackoverflow.com/questions/37352869/why-am-i-getting-a-parser-error-on-my-yaml-config-in-mongodb-install

This question has almost 1000 views


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