gpt4 book ai didi

azure - 如何使用适用于 Linux 的命令行工具 (SDK) 创建适用于 Azure 的 WebRole

转载 作者:行者123 更新时间:2023-12-02 07:32:23 24 4
gpt4 key购买 nike

我正在 Ubuntu 上工作,并安装了适用于 Linux 的 Azure SDK 并使其正常工作。如何使用 Linux SDK 为 node.js 服务添加 Azure WebRole。

我指的是以下教程,但它仅讨论如何在 Windows 上使用 cmdlet 创建 WebRole

Node.js Cloud Service

还查看了以下链接,该链接解释了适用于 Linux/Mac 的 Azure 命令行,但我找不到任何使用 Linux SDK 创建 WebRole 的命令

Windows Azure command-line tool for Mac and Linux

最佳答案

您不能使用“Windows Azure command-line tool for Mac and Linux”在 Windows Azure 中创建 WEB 角色(如果您指的是 Windows Azure Web 角色),因为这些命令仅适用于您的虚拟机 Linux(以及 Windows)。还有Node.js Cloud Service上面的链接将在 Windows Azure 虚拟机中创建 Node.js Web 服务器,因此请确保您在此处尝试执行的操作。这在您的虚拟机中不起作用。

但是,如果您想创建 Linux VM 并在其上运行 Web 服务器,那么请确保是否可以使用确切的命令,步骤如下:

  1. 创建 Linux 虚拟机(上传您自己的虚拟机或 create VM directly by Linux Gallery Image)
  2. Setup Putty to login to your Linux VM
  3. 使用 info here 安装您选择的 Web 服务器通过 Putty 命令 session

如果您在上述任何步骤中需要帮助,请告诉我。

关于azure - 如何使用适用于 Linux 的命令行工具 (SDK) 创建适用于 Azure 的 WebRole,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11145580/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com