Need a step by step guide to host a website on AWS

强颜欢笑 提交于 2019-12-03 08:21:05

First some concepts:

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.

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

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 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.

Answers to your questions:

  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.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!