search

Home  >  Q&A  >  body text

mongodb - mongo deployed on Alibaba Cloud's ECS server cannot be accessed from the external network

I bought an Alibaba Cloud ecs server, configured security group rules (opening 80, 8080, and Mongo's default port 27017), and then started the node and mongodb services. The node service can be accessed normally from the external network, but Use mongoose/robomongo or directly access the 27017 port of mongo to display

dial tcp myIp:27017: connectex: No connection could be made because the target machine actively refused it.

It seems to have been rejected. Does anyone know where to configure it? Thank you!

代言代言2709 days ago1556

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-06-16 09:21:13

    Try the configuration:

    net:
       bindIp: 0.0.0.0   # 一般不建议这样配置bindIp,单纯debug
       port: 27017

    reply
    0
  • Cancelreply