我已经在Azure Cosmos DB中设置了MongoDB,但无法连接到它。创建Cosmos DB时,除了防火墙,我将所有参数保留为默认值:已关闭此功能。我可以通过Azure的数据浏览器查看数据库,但是无法从本地计算机连接到该数据库。以下是Mongo客户端的输出:
$ mongo my_acc.documents.azure.com:10255 -u <username> -p <password> --ssl --sslAllowInvalidCertificates --verbose
MongoDB shell version v4.0.3
connecting to: mongodb://my_acc.documents.azure.com:10255/test
2018-10-15T15:42:19.077+0200 D NETWORK [js] creating new connection to:my_acc.documents.azure.com:10255
2018-10-15T15:42:24.111+0200 D - [js] User Assertion: InternalError: couldn't connect to server my_acc.documents.azure.com:10255, connection attempt failed: SocketException: Error connecting to my_acc.documents.azure.com:10255 (13.69.66.0:10255) :: caused by :: Connection timed out src/mongo/scripting/mozjs/mongo.cpp 756
2018-10-15T15:42:24.111+0200 E QUERY [js] Error: couldn't connect to server my_acc.documents.azure.com:10255, connection attempt failed: SocketException: Error connecting to my_acc.documents.azure.com:10255 (13.69.66.0:10255) :: caused by :: Connection timed out :
connect@src/mongo/shell/mongo.js:257:13
@(connect):1:6
2018-10-15T15:42:24.111+0200 D - [js] User Assertion: Location12513: connect failed src/mongo/shell/shell_utils.cpp 343
2018-10-15T15:42:24.111+0200 I QUERY [js] MozJS GC prologue heap stats - total: 4002929 limit: 0
2018-10-15T15:42:24.112+0200 I QUERY [js] MozJS GC epilogue heap stats - total: 283209 limit: 0
2018-10-15T15:42:24.112+0200 I QUERY [js] MozJS GC prologue heap stats - total: 174369 limit: 0
2018-10-15T15:42:24.113+0200 I QUERY [js] MozJS GC epilogue heap stats - total: 1449 limit: 0
2018-10-15T15:42:24.113+0200 D - [main] User Assertion: Location12513: connect failed src/mongo/scripting/mozjs/proxyscope.cpp 300
exception: connect failed
我尝试使用不同的工具从来自不同网络的不同计算机进行连接,但是它们都不起作用。我在俯视什么吗?任何帮助将不胜感激。