文档数据库服务 DDS-连接失败,提示:couldn't connect to server:问题描述

时间:2023-11-01 16:18:26

问题描述

使用如下命令连接3.4版本的DDS实例时报错。

mongo --host 192.168.64.201 --port 8635 -u rwuser -p xxxxxxxxx --authenticationDatabase admin --ssl --sslCAFile /root/ca.crt --sslAllowInvalidHostnames

报错信息如下:

MongoDB shell version v3.4.17connecting to: mongodb://192.168.64.201:8635/2019-09-19T09:45:48.168+0800 W NETWORK  [thread1] Failed to connect to 192.168.64.201:8635 after 5000ms milliseconds, giving up.2019-09-19T09:45:48.168+0800 E QUERY    [thread1] Error: couldn't connect to server 192.168.64.201:8635, connection attempt failed :connect@src/mongo/shell/mongo.js:240:13@(connect):1:6exception: connect failed
support.huaweicloud.com/trouble-dds/dds_03_troubleshoot_0004.html