是否有任何关于将 CentOS node.js 转换为 Azure PaaS node.js 应用程序的 Azure 资源?

Are there any Azure resources on the conversion of a CentOS node.js to an Azure PaaS node.js app?

是否有任何 Azure 资源(文档或其他)解释 CentOS node.js 应用程序到 Azure 平台即服务 node.js 应用程序的转换?

根据我的经验,我认为这不是一件困难的事情。 Azure 支持大量服务和组件,以帮助将您的 nodejs 应用程序的不同布局迁移到 Azure 上合适的服务中。

如果你的nodejs应用是web应用,你可以参考下面这些文档:

  1. 构建和部署 nodejs 网络应用程序:https://azure.microsoft.com/en-us/documentation/articles/web-sites-nodejs-develop-deploy-mac/
  2. 使用 WebMatrix 构建和部署 nodejs 网络应用程序:https://azure.microsoft.com/en-us/documentation/articles/web-sites-nodejs-use-webmatrix/
  3. 通过不同的方式部署网络应用程序:https://azure.microsoft.com/en-us/documentation/articles/web-sites-deploy/

如果您的 nodejs 应用程序使用 MySQL,您可以购买 ClearDB(或在 Azure VM 上安装 MySQL)或创建一个具有 20M 免费 MySQL 数据库的网站。请参考https://azure.microsoft.com/en-us/documentation/articles/store-php-create-mysql-database/.

如果您使用 MSSQL 作为 nodejs 应用程序数据库,您只需按照 https://azure.microsoft.com/en-us/documentation/articles/sql-database-dotnet-how-to-use/ and https://azure.microsoft.com/en-us/documentation/articles/sql-database-develop-nodejs-simple-windows/.

将所有数据迁移到 Azure SQL 数据库中

如果你用过MongoDB,你可以用Azure DocumentDB替换它https://azure.microsoft.com/en-us/documentation/articles/documentdb-nodejs-application/ or access MongoDB installed on Azure VM https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-store-data-mongodb-vm/

并且 Azure https://mongolab.com/azure/ 上有第三方 MongoDB 服务。

我认为解决您的问题的简单方法是使用 Azure IaaS 创建一个 CentOS VM 来迁移您的 nodejs 应用程序。当您在本地 CentOS 上使用某些特殊功能时,这种方式是正确的 choice.Please 参考 https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-opensource/.

页面的 "CentOS" 部分

此致。