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!
Try the configuration: