Amazon EC2 和 AWS Elastic Beanstalk 之间的区别 [英] Difference between Amazon EC2 and AWS Elastic Beanstalk

查看:63
本文介绍了Amazon EC2 和 AWS Elastic Beanstalk 之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以解释一下 EC2 和 Beanstalk 之间的区别是什么.我想了解 SaaS、PaaS 和 IaaS.

Can someone please explain what is the difference between EC2 and Beanstalk. I want to know regarding SaaS, PaaS and IaaS.

要在 Wordpress 中部署 Web 应用程序,我需要一个可扩展的托管服务.如果有什么比我的目的更好的,也请告诉我.

To deploy a web application in Wordpress I need a scalable hosting service. If there anything better than my purpose, please let me know as well.

仅供参考 - 我想托管和部署多个 Wordpress 和 Drupal 站点.

FYI - I want to host and deploy multiple Wordpress and Drupal sites.

我不想给服务器更多的时间而专注于开发.但云托管需要可自动扩展.

I do not want to give more time for the server and focus on development. But the cloud hosting needs to be auto scalable.

推荐答案

首先,EC2 和弹性计算云 是一样的.

接下来,AWS 涵盖了包括 EC2 和 Elastic Beanstalk 在内的一系列 Web 服务.它还包括许多其他应用,例如 S3、RDS、DynamoDB 以及所有其他.

Next, AWS encompasses the range of Web Services that includes EC2 and Elastic Beanstalk. It also includes many others such as S3, RDS, DynamoDB, and all the others.

EC2 是 Amazon 的服务,它允许您在 AWS 云中创建服务器(AWS 称这些实例).您按小时付费,并且只按使用量付费.你可以对这个实例做任何你想做的事情,也可以启动 n 个实例.

EC2 is Amazon's service that allows you to create a server (AWS calls these instances) in the AWS cloud. You pay by the hour and only what you use. You can do whatever you want with this instance as well as launch n number of instances.

Elastic Beanstalk 是一个远离 EC2 层的抽象层.Elastic Beanstalk 将为您设置一个环境",其中可以包含多个 EC2 实例、一个可选数据库以及一些其他 AWS 组件,例如弹性负载均衡器、Auto-Scaling 组、安全组.然后,每当您想要更新在 AWS 中运行的软件时,Elastic Beanstalk 都会为您管理这些项目.Elastic Beanstalk 不会在它为您创建的这些资源之上增加任何成本.如果您有 10 小时的 EC2 使用时间,那么您只需支付 10 小时的计算时间.

Elastic Beanstalk is one layer of abstraction away from the EC2 layer. Elastic Beanstalk will setup an "environment" for you that can contain a number of EC2 instances, an optional database, as well as a few other AWS components such as a Elastic Load Balancer, Auto-Scaling Group, Security Group. Then Elastic Beanstalk will manage these items for you whenever you want to update your software running in AWS. Elastic Beanstalk doesn't add any cost on top of these resources that it creates for you. If you have 10 hours of EC2 usage, then all you pay is 10 compute hours.

对于运行 Wordpress,它是您最熟悉的.您可以直接在单个 EC2 实例上运行它,也可以使用 AWS Marketplace 中的解决方案,或者您可以使用 Elastic Beanstalk.

For running Wordpress, it is whatever you are most comfortable with. You could run it straight on a single EC2 instance, you could use a solution from the AWS Marketplace, or you could use Elastic Beanstalk.

如果您想减少系统操作并只专注于网站,那么 Elastic Beanstalk 将是最佳选择.Elastic Beanstalk 支持 PHP 堆栈(以及其他堆栈).您可以将站点置于版本控制中,并在进行更改时轻松部署到您的环境中.它还将设置一个 Autoscaling 组,如果流量增长,该组可以产生更多的 EC2 实例.

In the case that you want to reduce system operations and just focus on the website, then Elastic Beanstalk would be the best choice for that. Elastic Beanstalk supports a PHP stack (as well as others). You can keep your site in version control and easily deploy to your environment whenever you make changes. It will also setup an Autoscaling group which can spawn up more EC2 instances if traffic is growing.

以下是 Google 在搜索elastic beanstalk wordpress"时的第一个结果:https://www.otreva.com/blog/deploying-wordpress-amazon-web-services-aws-ec2-rds-via-elasticbeanstalk/

Here's the first result off of Google when searching for "elastic beanstalk wordpress": https://www.otreva.com/blog/deploying-wordpress-amazon-web-services-aws-ec2-rds-via-elasticbeanstalk/

这篇关于Amazon EC2 和 AWS Elastic Beanstalk 之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆