①我们首先需要一个域名
域名的作用是让我们可以在互联网中输入网址就访问到这个网页。
我们使用的是阿里云的域名。.top结尾的比较便宜。由于你所知的原因,hello打错了,于是就是下图这样了。
家人们谁懂啊,持有者 **袁 。哼哼。
其次还需要对域名进行实名认证。如果服务器租的是大陆的,后面域名解析的时候还要备案,我租的香港的就不用啦。说到这里,搞这个网站的前一天晚上要放弃之前,我在阿里云实名认证了,还没买域名。第二天我在工位收到了认证成功的短信,再一次激起了斗志啊。
②其次我们需要一台服务器
服务器的作用是部署建设这个网页所需的各种文件,以及不停机地跑网页的服务,让我们能随时随地的打开。
服务器我也租的阿里云的,好吧其实是教程让的,完全照做出错的可能性会小一些,但是众所周知代码这东西,copy了也不一定能跑,好吧其实是一定不能跑哈哈哈。
租服务器这里的雷点是,首先教程是22年的有点老了,阿里云页面和之前长得不一样了,TM找轻量级服务器找了半天,因为不是现在的主推了吧可能。最后搞到了如下图的一台很棒的香港服务器啊。
今天和豆豆协商获取到了一晚豁免啊。——20251113
③再次我们需要建站!
书接上回,域名也有了,服务器也租了,现在万事俱备,只欠东风了啊。先想办法登录到服务器。下载一个免费版本的Xshell,建立个会话,用root登录服务器,密码是从阿里云服务器管理处设置的。
欢迎来到阿里云服务器!好登录成功!由于服务器是Centos的,是没有可视化页面的,只能用命令行交互,很麻烦。那些搭建网页的服务http啥的都得自己搞。但是有个软件叫宝塔,他可以给建站一件化。我们也来安装一个!
可以看到有了宝塔,就像用一个Windows系统一样,可以操作文件的增删改查,也可以直接编辑html,很方便。最后就是上网下载个喜欢的网页模板拉,替换掉现在的网站html。大功告成。
You can use and modify the template for both personal and commercial use. You must keep all copyright information and credit links in the template and associated files. For more website templates visit our free website templates section.
Portortornec condimenterdum eget consectetuer condis consequam pretium pellus sed mauris enim. Puruselit mauris nulla hendimentesque elit semper nam a sapien urna sempus.
Comments
This is an example of a comment made on a post. You can either edit the comment, delete the comment or reply to the comment. Use this as a place to respond to the post or to share what you are thinking.
This is an example of a comment made on a post. You can either edit the comment, delete the comment or reply to the comment. Use this as a place to respond to the post or to share what you are thinking.
This is an example of a comment made on a post. You can either edit the comment, delete the comment or reply to the comment. Use this as a place to respond to the post or to share what you are thinking.
Write A Comment