我正在设置MongoDB集群,并且已经运行脚本成功创建了所有节点。当我尝试运行脚本来设置集群时,收到错误消息“无法建立连接,因为目标计算机主动拒绝了该连接。我应该采取什么步骤解决这个问题?
C:\Users\garsh\Desktop\College Work\Semester 2\NoSQL Data
Architectures\distrib_clus - 23>"C:\Program
Files\MongoDB\Server\4.0\bin\mongo.exe" --shell 2.setup_cluster.js
MongoDB shell version v4.0.6
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("c08364ed-62b8-4629-9629-
4b0e1bd93b66") }
MongoDB server version: 4.0.6
type "help" for help
connecting to: mongodb://DESKTOP-HLVSBAS.local:27000/test
2019-04-03T19:42:34.052+0100 E QUERY [js] Error: couldn't connect to
server
DESKTOP-HLVSBAS.local:27000, connection attempt failed: SocketException:
Error connecting to DESKTOP-HLVSBAS.local:27000 (192.168.0.13:27000) ::
caused by :: No connection could be made because the target machine
actively refused it. :
connect@src/mongo/shell/mongo.js:343:13
@2.setup_cluster.js:33:6
failed to load: 2.setup_cluster.js
C:\Users\garsh\Desktop\College Work\Semester 2\NoSQL Data
Architectures\distrib_clus - 23>REM #
C:\Users\garsh\Desktop\College Work\Semester 2\NoSQL Data
Architectures\distrib_clus - 23>