连接尝试失败:SocketException:连接到mongodb时出错错误

时间:2019-04-02 10:26:22

标签: mongodb express google-cloud-platform google-compute-engine

我使用bitnami将mongodb部署在我的GCP Compute Engine上,但是我的mongodb在重启GCP机器后没有启动,并出现以下错误:

MongoDB shell version v4.0.6 
connecting to: mongodb://ip:27017/admin?gssapiServiceName=mongodb 
2019-04-02T10:22:05.815+0000 E QUERY    [js] Error: couldn't connect 
to server ip:27017, connection attempt failed: SocketException: 
Error connecting to ip:27017 
:: caused by :: Connection timed out :
connect@src/mongo/shell/mongo.js:343:13
@(connect):1:6
exception: connect failed

0 个答案:

没有答案