Bought a Ali cloud ecs server, configured with security group rules (open 80, 8080, and mongo default 27017 ports), and then started the node and mongodb services, node services can be normally accessed from the external network, but with mongoose/robomongo or direct access to mongo 27017 ports is displayed
dial tcp myIp:27017: connectex: No connection could be made because the target machine actively refused it.
It seems to be rejected. Does anyone know where to allocate it? Thank you!
Try configuration:
net: BindIp: 0.0.0.0 # It is generally not recommended to configure bindIp like this, just debug port: 27017