mongod.cfg bindIPAll : true , is that right?

857 views
Skip to first unread message

BitchRabbit

unread,
Oct 25, 2018, 9:36:12 PM10/25/18
to mongodb-user
Hello
i amend bindIP:127.0.0.1 to bindIPAll:true
However mongod have error.

2018-10-26T10:28:50.616+0900 I CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
2018-10-26T10:28:50.618+0900 I CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server.
2018-10-26T10:28:50.619+0900 I CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP
2018-10-26T10:28:50.620+0900 I CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
2018-10-26T10:28:50.620+0900 I CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
2018-10-26T10:28:50.621+0900 I CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.

1.PNG

2.PNG

OS: Window 10 64bits

Thank you for your help.

Matt Hughes

unread,
Oct 25, 2018, 9:40:18 PM10/25/18
to mongod...@googlegroups.com
I haven't used this before but documentation indicates a lowercase p

--
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.

BitchRabbit

unread,
Oct 28, 2018, 7:50:25 PM10/28/18
to mongodb-user

Same Error :P

I have allowed external access.


2.PNG

1.PNG



2018년 10월 26일 금요일 오전 10시 40분 18초 UTC+9, MH 님의 말:

Robert Cochran

unread,
Oct 28, 2018, 8:17:37 PM10/28/18
to mongodb-user
Did you save mongod.cfg, and then shut down the mongod server and restart it after changing mongod.cfg?

It certainly looks like you did. 

Does rebooting the entire Windows system help?

Thanks so much

Bob

BitchRabbit

unread,
Oct 28, 2018, 9:20:07 PM10/28/18
to mongodb-user
Hello
i restart computer after mongod.exe have same error :(
i need to allow the external access.
i open port to the Windows Defender.

What have problems?

3.PNG



2018년 10월 29일 월요일 오전 9시 17분 37초 UTC+9, Robert Cochran 님의 말:

MH

unread,
Oct 28, 2018, 9:26:52 PM10/28/18
to mongodb-user
Perhaps its broken in 4? 
Did you try just bindIp::,0.0.0.0 ? 

Robert Cochran

unread,
Oct 28, 2018, 9:29:20 PM10/28/18
to mongodb-user
Hi!

Perhaps:



--------

bindIp: 0.0.0.0

---------



Thanks

Bob

BitchRabbit

unread,
Oct 28, 2018, 9:38:03 PM10/28/18
to mongodb-user
Same Error  .-.
Perhaps difference directory?

1.PNG

2.PNG

3.PNG



2018년 10월 29일 월요일 오전 10시 26분 52초 UTC+9, MH 님의 말:

BitchRabbit

unread,
Oct 28, 2018, 9:41:12 PM10/28/18
to mongodb-user
Same Error .-.

2018년 10월 29일 월요일 오전 10시 29분 20초 UTC+9, Robert Cochran 님의 말:

Robert Cochran

unread,
Oct 28, 2018, 9:44:02 PM10/28/18
to mongodb-user
Here is what might be happening:

Windows 10 might not be showing you all file extensions. Turn on the File Explorer setting to show all file extensions. Now look again in your install directory. What you see might be a file named mongod.cfg.txt, and the server might not be reading that file!

Change the filename to mongod.cfg and make sure it is saved as that extension.

Then try again. See this quote from the installation instructions for Windows:

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.



Bob
Enter code here...

BitchRabbit

unread,
Oct 28, 2018, 9:55:30 PM10/28/18
to mongodb-user

Hello

Mongod.cfg is not mongod.cfg.txt

GRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR :O




4.PNG



2018년 10월 29일 월요일 오전 10시 44분 2초 UTC+9, Robert Cochran 님의 말:

Kevin Adistambha

unread,
Oct 29, 2018, 8:53:07 PM10/29/18
to mongodb-user

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

BitchRabbit

unread,
Nov 8, 2018, 2:59:05 AM11/8/18
to mongodb-user
Hello , Dear my supporters.

I solve problem.
i download default directory or service to window 10 msi.
However i can't know why Mongod don't use config file.
Now i don't know reason and difference solve it.
Thank you support.

1.PNG

2.PNG



2018년 10월 30일 화요일 오전 9시 53분 7초 UTC+9, Kevin Adistambha 님의 말:
Reply all
Reply to author
Forward
0 new messages