how to use mongodb.yml config file on amazon linux

626 views
Skip to first unread message

Wilbert Cox

unread,
Apr 22, 2014, 7:48:46 AM4/22/14
to mongod...@googlegroups.com
I'm a total noob to mongodb - I've installed 5-10 amazon 2.4 AMIs in the past week or so and got python remote connections working fine.  I'm now trying from a clean yum install of 2.6 and can't get remote connections working.  In reading through the various config options there is reference to YAML config files, presumably mongodb.yml instead of mongodb.conf.  I just can't find the .yml file (it's not in /etc like the .conf file).

Various searching has not led to find the location of the default .yml file nor a sample file that I could use/modify.

Thanks in advance for any help.


Eoin Brazil

unread,
Apr 22, 2014, 8:01:33 AM4/22/14
to mongod...@googlegroups.com
Hi Wilbert,

The MongoDB page that refers to the new (2.6) support for YAML files is at http://docs.mongodb.org/manual/reference/configuration-options/#config-file-format and it includes a sample configuration file. You could start by modifying the existing configuration file from the 2.6 source release into this format (mongodb-src-r2.6.0/debian/mongod.conf) as I believe that while YAML is now support, it is not the default configuration file format. That might change in the future.

Thanks!
Eoin

Wilbert Cox

unread,
Apr 22, 2014, 11:12:59 AM4/22/14
to mongod...@googlegroups.com
Thanks Eoin!
I guess I was expecting there to be an entire sample .yml config file with the installation.  After going over the 2.6 config page again and some experimentation I've now got my 2.6 server up&running with remote python connections and the http/rest interface working as expected.  
Now on to replica sets and sharding!
Thanks Again!
Wilbert.
Reply all
Reply to author
Forward
0 new messages