如何用最少的钱开一个网站?


目录

  1. 主机
  2. 域名
  3. CDN
  4. 备注

主机

Github Page

优点

  1. 免费
  2. 支持使用 MarkDown 写网页
  3. 送二级域名

缺点

  1. 速度比较玄学,有时候可能会超时
  2. 不支持PHP
  3. 免费单个文件最大不超过 100MB,仓库最大不超过 1GB

使用方法

参考 https://github.io/

  1. 注册 GitHub 账户
  2. 创建一个名为 用户名.github.io 的公开仓库
  3. 在仓库内上传网站源代码

绑定域名方法

请先将域名解析到 用户名.github.io!

  1. 进入仓库,点击【Settings】
  2. 点击【Pages】
  3. 在【Custom domain】的输入框填入域名后点击【Save】

详见:https://docs.github.com/articles/using-a-custom-domain-with-github-pages/

Gitee Page

优点

  1. 免费
  2. 支持使用 MarkDown 写网页
  3. 送二级域名
  4. 速度比 GitHub Page 好

缺点

  1. 需要实名(就因为这个让我放弃了Gitee Page)
  2. 不支持PHP
  3. 免费单个文件最大不超过 50MB,仓库最大不超过 500MB

使用方法

和 github page 差不多

Freehost(http://www.freehost.cc/)

优点

  1. 免费
  2. 支持 PHP+MySQL
  3. 支持 FTP
  4. 免费 10GB 空间
  5. 似乎可以无限注册

缺点

  1. 速度稍慢
  2. 管理面板广告多

雨云

优点

  1. 价格低
  2. 免费域名
  3. 可自定义错误页、PHP版本(虚拟主机,如果是云服务器能干的更多)

缺点

  1. 性能较差,不稳定
  2. 付费

域名

Freenom(不推荐:免费域名无法重复注册)

优点

  1. 提供免费域名

缺点

  1. 访问速度慢
  2. DNS、NameServer绑定速度慢
  3. 免费域名无法重复注册

CDN

CloudFlare

优点

  1. 免费
  2. 支持直接在上面搭建网站(Worker和Pages)
  3. 解析速度快
  4. 安全可靠

缺点

  1. 免费计划开启 CloudFlare 代理后速度稍慢

备注

这些资源其中大部分是我自己正在用的,就拿我自己网站来说吧

kod.thisisxd.top云盘FTP储存:freehost

blog.thisisxd.top、cloud.thisisxd.top主机:雨云

CDN:CloudFlare

域名:阿里云

pay.thisisxd.top、www.thisisxd.top:Github Page>