Skip to content

连接MongoDB失败! #123

@Feng-Yong-Qi

Description

@Feng-Yong-Qi

mayfly-go版本:v1.10.3
连接MongoDB主机地址只会去找mongo,并不会根据填写的IP链接。

可以在部署mayfly-go的服务器中修改:/etc/hosts填写:39.xx.xx.xxx mongo,这样是可以链接,但是如果要连接多台MongoDB的话就不行了。
就算填写以下这种方式区分mongo主机地址,但还是链接mongo。
39.xxx.xxx.xxx mongo1
38.xxx.xxx.xxx mongo2

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions