mongodb - mongo deployed on Alibaba Cloud's ECS server cannot be accessed from the external network
代言
代言 2017-06-16 09:19:13
0
1
1470

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!

代言
代言

reply all (1)
左手右手慢动作

Try the configuration:

net: bindIp: 0.0.0.0 # 一般不建议这样配置bindIp,单纯debug port: 27017
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!