需要一步一步的指导,主办AWS网站 [英] Need a step by step guide to host a website on AWS

查看:164
本文介绍了需要一步一步的指导,主办AWS网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经浏览了一个星期就如何使用AWS。 我使用的cPanel一直是(我是新来的网络),但是有人建议AWS给我。 从我拼凑从不同的网站的内容,我想我应该做到以下几点:

I've been browsing for a week on how to use AWS. I've always been using cpanel (I'm new to web) but someone recommended AWS to me. From the info I pieced together from various websites, I think I'm supposed to do the following?:

1)复制我的网站文件到S3

1) copy my website files to S3

2)建立了一个实例EC2

2) set up an instance in EC2

3)设置卷在EBS并连接到实例

3) set up volume in EBS and attach to instance

4)建立弹性的IP,并连接到实例。

4) set up elastic IP and attach to instance.

5)??

的问题是,

1)这是正确的?

2)在哪里和如何创建MySQL数据库?我用SimpleDB的,你在哪里可以找到它的管理控制台?我使用Windows Server 2008 32B在EC2上,我应该连接到远程桌面,安装XAMPP,然后创建本地主机上的数据库?

2) Where and how do I create mySQL database? Do I use SimpleDB, Where can you find it in the management console? I'm using Windows Server 2008 32b on EC2, should I connect to remote desktop, install XAMPP and then create the database on localhost?

3)怎样才能从EC2 S3文件?或者我应该只是所有的网页文件复制到EBS?

3) How can I get S3 files from EC2? or should I just copy all the website files to EBS?

4)如何从我的计算机到EC2 / EBS复制文件?只有S3似乎是方便

4) How do I copy files from my computer to EC2/EBS? Only S3 seems to be easily accessible

5),当它终于工作,我该怎么我的域名连接到?弹性IP?或公共DNS?

5) when it finally work, what do I connect my domain to? The elastic IP? or the Public DNS?

抱歉,如果这还不清楚,我会尽我所能解释的。

Sorry if this is unclear, I'll do my best to explain.

感谢您在您的帮助 大卫

Thank you in advance for your help David

推荐答案

首先,一些概念:

EC2 情况下都只是虚拟机。一旦启动,您可以通过远程Desktoping管理他们到实例(使用公共DNS地址或附加弹性IP地址)。然后,它就像你坐在电脑前。你可以你喜欢的实例,你是负责安装我想,如果你愿意,你可以在一个EC2实例安装的cPanel和管理这样的说法补丁/升级等安装任何东西。

EC2 instances are just virtual machines. Once started, you manage them by Remote Desktoping into the instance (using the public dns address or an attached elastic ip address). Then its as though you are sitting in front of the computer. You can install anything you like on the instance and you are responsible for installing patches/updates etc. I guess, if you like, you could install cPanel on an EC2 instance and manage it that way.

您将您的EC2实例安装Web服务器,数据库等。

You would install your webserver, database etc on your EC2 instance.

想到的 EBS ,以此来增加额外的硬盘到您的实例。这些持续超过你的情况 - 例如,如果你关闭一个实例,EBS卷仍然可用

Think of EBS as a way to add additional hard disks to your instance. These persist beyond your instances - eg if you shut down an instance, the EBS volume will still be available.

S3 是一个纯粹的存储介质。它基本上是一个不断扩大的,高度可扩展的存储空间,但您只需支付所使用的金额。你可以用它来存储与您的网站相关的任何静态文件。如图片,视频等,甚至的JavaScript,CSS等,但你并不需要使用S3与EC2。既可以独立运行。

S3 is purely a storage medium. Its basically an ever expanding, highly scalable storage space but you only pay for the amount that you are using. You might use this to store any static files associated with your website. eg images, videos etc or even javascript, css etc. But you don't need to use S3 with EC2. Both can operate independently.

解答您的问题:

  1. 见上文
  2. 登录到使用远程桌面和安装MySQL,你需要任何其他的软件你的服务器。如果你不没有什么SimpleDB的是,你可能不需要它。这是亚马逊的NoSQL 发行这可能是你正在寻找的使用不是。
  3. 从您的EC2实例访问S3的最简单方法是使用亚马逊SDK的之一。在S3上的文件,也可以连接到使用标准的URL。请记住,不是所有网站文件应该在S3上,只有静态资源(如有)。不需要使用S3在所有。
  4. 在一个选择是建立在你的EC2实例的FTP服务器上的文件复制到EC2。
  5. 附加弹性IP地址到你的服务器,并在该IP地址指向你的域名。
  1. See above
  2. Logon to your server using remote desktop and install mySql and any other software you need. If you don't no what SimpleDB is, you probably dont need it. It's Amazons noSql offering which is probably not something you are looking use.
  3. The easiest way to access S3 from your EC2 instance is by using one of the Amazon SDK's. Files on S3 can also be linked to using standard urls. Remember, not all your website files should be on S3, only the static resources if any. You don't need to use s3 at all.
  4. One option is to setup an FTP server on your EC2 instance to copy files to EC2.
  5. Attach an elastic ip address to your server and point your domain at that ip address.

这篇关于需要一步一步的指导,主办AWS网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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