search

Home  >  Q&A  >  body text

How to use client tools to manage the self-built mongodb database on Tencent Cloud host. The ports are blocked. What should I do?

Buying their mongo database separately is very expensive. I just installed it on the cloud host and cannot access it from outside.

世界只因有你世界只因有你2742 days ago717

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-17 10:05:57

    Open the corresponding ports in the security policy of iptables and cloud host

    By the way, the IP bound to mongodb is set to 0.0.0.0

    Be sure to set a password. Many people do not set a password or set a very weak password, which poses a huge security risk. Hackers will scan the entire network for mogodb ports, and many people have fallen victim to this. It has been reported in the news

    So it is best not to enable external network access to the database. If you want to do distributed, it is best to only enable intranet access to the cloud host

    Your application should access the database through the server program and provide external business APIs. Do not access the remote database directly from the client

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-17 10:05:57

    Just open the mongodb port so that it can be accessed by the outside world

    reply
    0
  • Cancelreply