我想寻求有关允许从我的 Mongodb 服务器进行远程连接的帮助。
我的配置在这里,但没有工作,我在我的远程机器上看到“连接失败”。
C:\mongodb\bin\mongod --bind_ip 0.0.0.0
我做错了吗?
最佳答案
你的命令应该是:
C:\mongodb\bin\mongod --bind_ip 127.0.0.1,xxx.xxx.xxx.xxx
IP xxx.xxx.xxx.xxx 是远程机器的 IP(mongo DB 在那里)
关于Windows mongodb 服务器 bind_ip 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20615230/