Mongodb 4.4.14 安裝在 Mac OS Monterey 版本 12.4 中。
來自安裝在 Mac 中的 Robo 3T 的連接可以正常作業。mac 本身的 mongo cli 連接也可以:
$ mongo
MongoDB shell version v4.4.14
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("ab8018b3-c4f2-4236-8c3b-abef5468bb03") }
MongoDB server version: 4.4.14
---
The server generated these startup warnings when booting:
2022-06-02T15:59:13.574 05:30: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
---
MongoDB Enterprise >
從安裝在 Windows 虛擬機中的 Studio 3T(它是 Parallels 軟體,而不是 VirtualBox)連接到這個 mongodb 4.4 時,收到以下錯誤:
Connection failed.
SERVER [192.168.1.2:27017] (Type: UNKNOWN) CONNECTING
Details:
Timed out after 5000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=192.168.1.2:27017, type=UNKNOWN, state=CONNECTING}]
請注意,Mac 主機 IP 地址為 192.168.1.2。并且從 Windows VM ping 到 Mac 作業正常。還禁用了 Windows 中的防火墻。
C:\Windows\system32>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time<1ms TTL=64
Reply from 192.168.1.2: bytes=32 time<1ms TTL=64
Reply from 192.168.1.2: bytes=32 time<1ms TTL=64
Reply from 192.168.1.2: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Windows\system32>
如何解決此錯誤?
uj5u.com熱心網友回復:
在并行軟體網路配置中,選擇“共享網路(推薦) ”,它作業正常。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/487071.html
標籤:mongodb 苹果系统 虚拟机 机器人3t 工作室3t
