Google Cloud Platform - Can't connect to mongodb
问题 Just installed mongodb using click-to-deploy in google cloud platform. I have another project, for which I created the mongodb database, where my web application runs. Do I have to open some port or configure something? 回答1: As the other answers in this thread suggest, mongod daemon is listening on TCP port 27017 . Therefore, you will need to add a firewall rule on Compute Engine firewall for this port and protocol. This can be done using Google Cloud console or using gcloud command tool: