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!
ringa_lee2017-06-16 09:21:13
Try the configuration:
net:
bindIp: 0.0.0.0 # 一般不建议这样配置bindIp,单纯debug
port: 27017