我在阿里云上部署Web应用程序的最佳实践

This article was originally published on Alibaba Cloud. Thank you for supporting the partners who make SitePoint possible.

本文最初发表在阿里云上 感谢您支持使SitePoint成为可能的合作伙伴。

In this article, I want to share the best practices I use when deploying a web application to Alibaba Cloud. I work as a freelancer and recently one of my clients asked me to setup SuiteCRM for his small organization. Since I frequently write tutorials for Alibaba Cloud, I recommended that the client use the same cloud platform. For nearly 100 users and at least 30 concurrent users, here's the configuration I recommended.

在本文中,我想分享将Web应用程序部署到阿里云时使用的最佳实践。 我是一名自由职业者,最近我的一位客户要求我为他的小型组织设置SuiteCRM。 由于我经常为阿里云编写教程,因此我建议客户端使用相同的云平台。 对于近100个用户和至少30个并发用户,这是我建议的配置。

  1. ECS instance of 2 vCPUs and 4GB RAM to install Nginx with PHP-FPM.

    2个vCPU和4GB RAM的ECS实例,可通过PHP-FPM安装Nginx。
  2. ApsaraDB for RDS instance for MySQL with 1GB core, 1 GB RAM, and 10 GB storage.

    适用于MySQL的ApsaraDB for RDS实例,具有1GB内核,1 GB RAM和10 GB存储空间。
  3. Direct Mail for sending emails.

    直接邮件发送电子邮件。

The steps I followed are very simple and can be adopted for nearly all PHP based applications.

我遵循的步骤非常简单,几乎可以用于所有基于PHP的应用程序。

If you are new to Alibaba Cloud, you can use this link to sign up to Alibaba Cloud. You will get new user credit worth US$300 for free, which you can use to try out different Alibaba Cloud products.

如果您不熟悉阿里云,则可以使用此链接注册阿里云。 您将免费获得价值300美元的新用户信用额,可用于试用其他阿里云产品。

创建ECS实例 (Creating an ECS Instance)

Alibaba Cloud has documented nearly everything you will require to get started with the cloud platform. You can use the Getting Started Tutorials or the Tech Share Blog to learn how to start using Alibaba Cloud. You can find the most obvious steps in the Quick Start Guide and let me walk you through the best practices to use when creating the ECS instance.

阿里云已经记录了您开始使用云平台所需的几乎所有内容。 您可以使用入门教程技术共享博客来学习如何开始使用阿里云。 您可以在《 快速入门指南》中找到最明显的步骤,并让我逐步介绍创建ECS实例时要使用的最佳实践。

Log in to your Alibaba Cloud console and go to Elastic Compute Service interface. You can easily create the instance by clicking the Create Instance button. Things to keep in mind are:

登录到您的阿里云控制台,然后转到Elastic Compute Service界面。 您可以通过单击创建实例按钮轻松地创建实例 。 要记住的事情是:

  1. Region: Since Alibaba Cloud has data centers all around the globe, always choose the region which is geographically closer to the users of the application. As the data center is closer to the user, the website will load very fast due to the low latency of the network. In my case, I chose Mumbai region, as the organization was based in Mumbai itself.

    地区 :由于阿里云在全球范围内拥有数据中心,因此请始终选择地理上更接近应用程序用户的地区。 随着数据中心离用户越来越近,由于网络的低延迟,网站将非常快速地加载。 就我而言,我选择了孟买地区,因为该组

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值