mysql - 是否可以在本地 Linux 机器上设置 Azure 混合连接管理器 (HCM)?

标签 mysql linux azure ssh port

enter image description here

在上图中(取自链接 https://learn.microsoft.com/en-za/azure/app-service/app-service-hybrid-connections ),我们看到本地盒子上安装了混合连接管理器 (HCM)。在该链接中,本地盒子似乎是一个 Windows 盒子。是否可以在本地 Linux 机器上获得相同的设置?对于这个特定的用例,我需要通过 Azure 应用服务 Api 应用程序中的 C# Asp.net REST Web Api 通过 SSH 隧道转发端口调用 Linux 机器上的 MySQL 实例(在端口 3306 上运行)。 Api 应用程序无法进行调用,因为无法在 Azure 应用程序服务计划上获取本地绑定(bind)转发端口,因为只有端口 80 和 443 处于打开状态...默认情况下,所有其他本地端口均处于关闭状态Azure 应用服务计划。

最佳答案

恐怕我们无法在本地 Linux 机器上安装混合连接管理器 (HCM)。 The document声明该工具在 Windows Server 2012 及更高版本上运行。 HCM 作为服务运行,并通过端口 443 出站连接到 Azure 中继。

事实上,混合连接功能需要网络中有一个中继代理来托管您的混合连接端点。在这种情况下,您可以在托管混合连接端点的同一网络中的 Windows 机器上安装中继代理。回复代理通过端口 443 调用 Azure Relay。有关更多详细信息,您可以 read this answer .

The solution here is to ensure that you are using the hostname of your on-premise server rather than the fully-qualified domain name. If you are using a fully-qualified domain name, you need to ensure that it’s a name that can be resolved within your local network. (In some cases, customers are running DNS in the local network, and it’s that local DNS service that resolves the name.)

关于mysql - 是否可以在本地 Linux 机器上设置 Azure 混合连接管理器 (HCM)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67514207/

相关文章:

mysql - 使用 int 和 char(32) 的 PK 性能

linux - .so 和 .a 文件有什么区别?

php - 启用 mySQL 远程连接端口 3306 Plesk 11.5 CENTOS

node.js - 如何将 eventGrid 添加到 NodeJS 中 Azure Functions 中的 http 触发器?

json - 如何使用等效的 SELECT DISTINCT 语句查询 Azure DocumentDB

azure - Microsoft Azure 启动任务未执行

mysql - 对多列进行分组时如何选择最大值或最后一条记录?

mysql - 在mysql中创建一个关于自身的表关系

php - mysqli_query 有问题,返回 NULL 但查询在 phpmyadmin 中有效

linux - 在 Windows 中利用 Unix 命令的强大功能