I have just started venturing into MongoDB and the world of NoSQL datatabases. Currently testing a Mongo installation on my Windows. In my config file, I wanted to use Mongo related environment variables that I have set up on my system. But on running the command:
$mongod --config $MONGO_HOME\conf\mongod.cfg --install
I get:
Error reading config file: No such file or directory
try 'mongod --help' for more information
How can I make Mongo understand and replace the environment variable with the right directory path? Here is what the config file looks like currently:
systemLog: destination: file path: $MONGO_HOME\log storage: dbPath: $MONGO_HOME\data\db