局域网上的Azure Cosmos DB模拟器 [英] Azure Cosmos DB Emulator on a Local Area Network
问题描述
我正在尝试通过Mac访问Azure Cosmos DB仿真器.该模拟器已安装在Windows 10计算机上.这两台机器显然都是本地网络的一部分.我可以使用以下地址浏览Windows 10计算机上的模拟器资源管理器:
1) https://localhost:8081/_explorer/index.html >
2) https://192.168.0.104/_explorer/index.html >
但是我无法使用以下地址在Windows 10计算机上浏览模拟器资源管理器:
1) https://192.168.0.104:8081/_explorer/index.html
我在浏览器中收到以下错误消息:
无法访问该网站.
< 192.168.0.104>拒绝连接.
通过Mac浏览时收到的错误消息也与此相同.
我尝试了以下方法:1)激活专用"防火墙.2)关闭私人"防火墙.3)在防火墙中创建一个规则,以允许端口8081上的入站连接.4)关闭所有类型的防火墙(私有,域,公共)
如果以前有人尝试过这样做,请建议我在做什么错了,或者甚至有可能吗?
使用以下命令生成授权密钥:
1)Microsoft.Azure.Cosmos.Emulator.exe/GenKeyFile = cosmosdbauthkey
2)如果模拟器已经在运行,则将其关闭.
3)然后在以下位置删除模拟器的数据目录:
(C:\ Users \ user_name \ AppData \ Local \ CosmosDBEmulator)
4)使用以下命令重新启动仿真器:
CosmosDB.Emulator.exe/AllowNetworkAccess/KeyFile = cosmosdbauthkey
引用: https://docs.microsoft.com/zh-CN/azure/cosmos-db/local-emulator#command-line-syntax
I am trying to access Azure Cosmos DB Emulator through a Mac. The emulator is installed on Windows 10 machine. Both machines are obviously part of the local network. I am able to browse the emulator explorer on Windows 10 machine using the following addresses:
1) https://localhost:8081/_explorer/index.html
2) https://192.168.0.104/_explorer/index.html
However I am not able to browse the emulator explorer on Windows 10 machine using the following address:
1) https://192.168.0.104:8081/_explorer/index.html
I am getting following error message in browser:
The site can't be reached.
<192.168.0.104> refused to connect.
Same is the error message I am getting when I browse through Mac.
I have tried the following: 1) Activate "Private" firewall. 2) Turn off "Private" firewall. 3) Create a rule in firewall to allow inbound connections on port 8081. 4) Turn off all kinds of firewalls (Private, Domain, Public)
If anyone has tried to this before, please suggest what am I doing wrong or if it is even possible?
Use following command to generate a authorization key:
1) Microsoft.Azure.Cosmos.Emulator.exe /GenKeyFile=cosmosdbauthkey
2) Then shutdown the emulator if it is already running.
3) Then delete the emulator’s data directory at following location:
(C:\Users\user_name\AppData\Local\CosmosDBEmulator)
4) Restart the emulator with following command:
CosmosDB.Emulator.exe /AllowNetworkAccess /KeyFile=cosmosdbauthkey
Refer: https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator#command-line-syntax
这篇关于局域网上的Azure Cosmos DB模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!