【问题标题】:MongoDB Compass using docker使用 docker 的 MongoDB Compass
【发布时间】:2021-07-29 20:04:33
【问题描述】:

我正在尝试通过 GUI 界面管理我的 MongoDB 数据库,但我不知道如何正确设置它。目前我正在使用 docker 来设置所有必要的东西,并且我正在通过命令进行连接

mongo --host "localhost:27017,localhost:27016".

现在,当我打开 MongoDB Compass 时,它会要求我输入以下格式的字符串:

如何正确格式化我的 IP?

【问题讨论】:

  • 你试过mongodb://localhost:27017吗?
  • 是的,成功了!谢谢!

标签: mongodb docker ip mongodb-compass


【解决方案1】:

正如@super 所说,答案只是mongodb://localhost:27017

【讨论】:

    猜你喜欢
    • 2018-09-04
    • 2020-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-25
    • 2018-04-08
    • 2021-07-23
    • 1970-01-01
    相关资源
    最近更新 更多