我使用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