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

后端 未结 1 1223
故里飘歌
故里飘歌 2021-02-10 01:15

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 variou

1条回答
  •  孤城傲影
    2021-02-10 01:56

    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.

    0 讨论(0)
提交回复
热议问题