Windows mongodb 服务器 bind_ip 配置

标签 windows mongodb

我想寻求有关允许从我的 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/

相关文章:

c# - 以编程方式更新注册表设置有什么风险?

linux - 在 linux shell 中运行 MongoDB 命令的错误替换

mongodb - Mongoose中的级联样式删除

windows - 如何使用 Windows Azure 表存储时间戳或 Etag 字段

c - 在 Chrome 的 NPAPI 窗口插件中使用 Windows raw_input

javascript - 如何计算 mongoose 中另一个集合中的文档数?

mysql - 迁移到 MongoDb?

mysql - 将 Mongodb ObjectId 映射到 Mysql ID 字段

c++ - 使用目标 Windows 7 编译后缺少 shcore.dll

windows - QTP是否支持检查Windows应用程序的代码?