aws 静态网站_如何使用AWS托管静态网站-入门指南

aws 静态网站

When I created my first portfolio last year, I based it on what I had learned from freeCodeCamp (HTML, CSS and a little JavaScript).

去年创建我的第一个投资组合时 ,我基于从freeCodeCamp (HTML,CSS和一些JavaScript)中学到的知识

At that point, I had only viewed my portfolio on localhost by viewing the files on my local computer. I didn’t know anything about how to host a website online.

那时,我只通过查看本地计算机上的文件来查看本地主机上的投资组合。 我对如何在线托管网站一无所知。

Learning how to host my first website wasn’t easy but it was a great learning experience. If you're an aspiring web developer or just interested in launching your own static website, then I hope you will find this guide useful.

学习如何托管我的第一个网站并不容易,但这是一次很棒的学习体验。 如果您是一个有抱负的Web开发人员,或者只是对启动自己的静态网站感兴趣,那么希望您对本指南有所帮助。

本指南适用于谁? (Who is this guide for?)

This guide is aimed at complete beginners who want to host a static website (a site with fixed content). I will provide a how-to-guide for the following:

本指南面向希望托管静态网站(内容固定的网站)的完整初学者 。 我将提供以下方面的操作指南:

  1. How to buy a domain.

    如何购买域名。
  2. How to configure your domain for an external hosting provider.

    如何为外部托管服务提供商配置您的域。
  3. How to host your website with Amazon Web Services (AWS).

    如何使用Amazon Web Services(AWS)托管您的网站。
  4. How to make your website secure (SSL certification) using Amazon Certification Manager.

    如何使用Amazon Certification Manager使您的网站安全(SSL认证)。

There might be some terminology that’s new to you. Please go ahead and look up terms that are not familiar. I’ve put in useful links and explanations where I thought appropriate.

可能有些新术语对您而言。 请继续查找不熟悉的术语。 我在我认为适当的地方提供了有用的链接和说明。

什么是域名和DNS(域名系统)? (What is a domain name and DNS (Domain Name System)?)

A domain name is your website address. For example thecodinghamster.com. But for a computer, a domain name is actually a series of numbers (an IP address). An IP address looks like this: 123.321.0.1

域名是您的网站地址。 例如thecodinghamster.com。 但是对于计算机而言,域名实际上是一系列数字(一个IP地址)。 IP地址如下所示:123.321.0.1

It’s not easy for us to remember a long string of numbers. So your computer refers to a DNS to translate a text based website address into an IP address which it can then understand. A DNS is like a directory.

要记住一长串数字对我们来说并不容易。 因此,您的计算机使用DNS来将基于文本的网站地址转换为IP地址,然后它便可以理解该IP地址。 DNS就像一个目录。

I watched this great video which explains domain name, DNS and how this works in under five minutes. Please watch the first five minutes of the video if you're interested:

我观看了这段精彩的视频,讲解了域名,DNS以及如何在不到五分钟的时间里工作。 如果您有兴趣,请观看视频的前五分钟:

您可以在哪里购买域名? (Where can you buy your domain name?)

You can buy a domain name from a domain name registrar. Prices start from a few dollars. Your domain name is unique. Each domain name registrar offers different levels of services/support. But you can register your domain with any registrar.

您可以从域名注册商处购买域名。 价格从几美元开始。 您的域名是唯一的。 每个域名注册商都提供不同级别的服务/支持。 但是您可以在任何注册商处注册您的域名。

什么是托管服务提供商? (What is a hosting provider?)

“An Internet hosting service is a service that runs Internet servers, allowing organizations and individuals to serve content to the Internet. There are various levels of service and various kinds of services offered.”

Internet托管服务是一种运行Internet服务器的服务,允许组织和个人将内容提供给Internet。 有各种级别的服务和提供的各种服务。”

When I was looking for a hosting provider for my website, I explored different options. The prices ranged from £2.00 — £5.00 per month with various storage options from 0.5GB to 10GB. The prices seemed reasonable but all I wanted to do was host a static website. It had a few images, HTML, CSS and JavaScript files. No dynamic content.

当我为我的网站寻找托管服务提供商时,我探索了不同的选择。 价格从每月2.00英镑到5.00英镑不等,提供从0.5GB到10GB的各种存储选项。 价格似乎合理,但我只想托管一个静态网站。 它有一些图像,HTML,CSS和JavaScript文件。 没有动态内容。

为什么选择AWS? (Why AWS?)

After some further research, I found AWS. AWS offers a free tier option. Essentially, you get lots of free products. Some of them expire after 12 months and others are fr

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值