I'm using the following command (Windows machine) with the MongoDB shell version: 3.0.7:
mongod --config "G:\NodeApps\mongod.cfg" --install
Contents of mongod.cfg file are given below:
systemLog:
destination: file
path:"G:\NodeApps\data\log"
storage:
dbPath:"G:\NodeApps\data"
Getting the below error:
Error parsing YAML config file: yaml-cpp: error at line 4, column 8: illegal map value
try 'mongod --help' for more information
Similar questions doesn't have the solutions for this.
What I've already tried:
- I'm using spaces (not tabs)
- I'tried by saving the file in ASCII format, as It was mentioned in one of the posts that Mongod config file shouldn't be saved in non-ACSII format. Not even in UTF-8.
Please help me with this.