On Monday, 8 February 2016 14:06:03 UTC+11, Inner wrote:
Thanks for the reply. I made the command âdir C:\mongodb\mongod.cfg.txtâ
and it worked when I called the âconfig command.
It sounds like your text editor may have automatically added a .txt
extension when you saved the file as mongod.cfg.
As I mentioned, the config file can be any valid filename âŠ mongod.cfg,
mongod.cfg.txt, or mongod.txt would all work. There is no specific file
type or extension required, but you may find it convenient to choose an
extension that can be associated with your favourite text editor (eg. .txt).
However I still do not understand how I can add additional IP addresses to
the bind_ip field, as it is not specified within my cfg file.
By default MongoDB listens to all local network interfaces. You can use the
bindIp config option
to specify a comma-separated list of IP addresses which are more
restrictive than the default setting.
Note that the bind IP restriction only limits the network interfaces that
the MongoDB server listens for connections on, and is not a substitute for
configuring a firewall
or role-based access control
What are you trying to achieve with multiple bind IP addresses? Are you
having issues connecting to your MongoDB server, or trying to restrict
If you are trying to configure additional security for your MongoDB
deployment please review the MongoDB Security Checklist
Also, if you have any further questions on configuration please include the
specific version of MongoDB server you are using. Relevant configuration
options may vary depending on your version of MongoDB.
You received this message because you are subscribed to the Google Groups "mongodb-user"
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/0d85ac82-3c4d-4aa4-82e9-73e3af1cbc81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.