本篇教程教大家网站环境的部署
一、购买主机空间
1. 打开傲云官网(https://www.iaodun.com/),点击“注册”

2. 填写资料注册账户

3. 到邮箱获取邮件,验证邮箱

4. 打开购买服务,选择虚拟主机-Linux免费版-立即订购


5. 选择“已有域名?请输入框内,开通服务后自行解析到主机”这个选项:



6. 如此一来,就买好了主机空间


二、DNS解析
1. 打开DNSpod官网(https://www.dnspod.cn/),点击“免费注册”

2. 选择适合自己的方法注册一个账号,我这边使用邮箱注册账号


3. 注册好以后,到域名解析处添加域名


4. 修改域名的NS记录,将f1g1ns1.dnspod.net和f1g1ns2.dnspod.net填入域名的NS记录

5. 登入Freenom,选择“登入”,输入之前注册域名的账号密码,然后按“Login”登录


6. 选择“Services”的“My Domains”,然后点“Manage Domain”


7. 选择“Management Tools”的“Nameservers”

8. 选择第二个“Use custom nameservers (enter below)”,将f1g1ns1.dnspod.net和f1g1ns2.dnspod.net填入第一二栏,点击“Change Nameservers”

9. 回到DNSpod,添加记录===>主机记录可以为@或者www(就是填写主机名),主机类型选择CNAME(别名解析,主机空间都是别名解析,VPS才使用A解析),记录值填linux.iaodun.com.(这是傲云空间的CNAME记录值),然后点击“确定”即可

10. DNS大约需要5-10分钟才生效,慢慢等候即可。可以使用windows自带的cmd ping一下域名看看DNS是否生效(命令: ping 域名,例如:ping baidu.com或者ping www.baidu.com),若有回显则生效,若无回显则未生效


11. DNS生效以后就可以用浏览器输入网址打开网站啦
上一篇:
小白建站教程——域名购买下一篇:
小白建站教程——搭建WordPres