--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/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 mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
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/3ef05d43-074d-479f-a0bb-a103387af270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Same Error :P
I have allowed external access.
::,0.0.0.0 ?
Show All File Name Extensions
Make certain that you set Windows Explorer/File Explorer to show file name extensions for all file types. This can prevent issues where the file type displayed to the user differs from the actual file type.
EXAMPLE
If Windows Explorer/File Explorer has known file extensions hidden, what may appear to be mongod.cfg is actually mongod.cfg.txt.
BobEnter code here...
Hello
Mongod.cfg is not mongod.cfg.txt
GRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR :O
Hi,
Have you solved the issue? If I may recap the story so far, you wanted to enable the bindIpAll
parameter to let MongoDB bind to all IP thus allowing external access to the server.
It’s worth mentioning that there is a detailed step-by-step guide on installing MongoDB on Windows on the Install MongoDB Community Edition on Windows page, where it lists most common issues (including Windows Defender, and getting Explorer to display known file extensions which was hidden).
Having said that, there are two ways you can install MongoDB on Windows: either as a service, or as a standalone binary.
If you installed MongoDB as a service (which is an option if you download the msi binaries), you can let the installer install MongoDB as a service, where it will automatically use the config file located under <MongoDB install directory>\bin\mongod.cfg
. For example, if I install MongoDB 4.0.3, by default it will read the config file located in C:\Program Files\MongoDB\Server\4.0\bin\mongod.cfg
.
If you installed MongoDB as a standalone binary, then you will need to pass this parameter manually, e.g. mongod --config <location of config file>
, while taking care of quoting the file path if it contain spaces.
To check if the config was being read properly, you can execute db.serverCmdLineOpts()
inside the mongo
shell, and check if the expected configuration is activated.
For valid configuration settings, please see Configuration File Options.
Finally, please note that it is strongly recommended to:
Best regards,
Kevin