Azure函数如何工作者' azurefunctionsrpcmessages'选择其端口

发布于 2025-01-22 12:26:05 字数 462 浏览 5 评论 0原文

我使用VSCODE Azure函数扩展名在Ubuntu机器上本地运行Azure函数。

我创建了一个本地函数,该功能在默认端口7071上运行。

但是,在检查日志时,我注意到以下消息,指示正在使用

info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/2 POST http://127.0.0.1:34447/AzureFunctionsRpcMessages.FunctionRpc/EventStream application/grpc

此处使用的端口34447每次运行功能时都会不断更改。似乎所选的端口在范围内3xxxx到范围4xxxx

我想知道如何选择端口?可以自定义吗?

I am running Azure Function locally on an Ubuntu machine using VSCode Azure Function Extension.

I created a local function, which runs on the default port 7071.

When checking the the log however, I notice the following message indicating that another port is being used

info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/2 POST http://127.0.0.1:34447/AzureFunctionsRpcMessages.FunctionRpc/EventStream application/grpc

The port used here 34447 keeps changing every time I run my function. It seems that the ports selected are in the range 3xxxx to range 4xxxx.

I am wondering how is the port is being selected? Is it customizable?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文