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

查看:1200
本文介绍了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网站。

Just to inform, I want to host&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和Elastic Compute Cloud 是同一回事。

下一步,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称这些实例)。您按小时付费,仅按使用量付费。您可以对此实例执行任何操作,也可以启动 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组件,例如Elastic Load Balancer,Auto-Scaling Group,Security Group。然后,无论何时要更新在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市场中的解决方案,或者您可以使用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搜索弹性beantalk 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天全站免登陆