0 yuan 0 foundation to build a personal website simple and practical operation

written in front

  • The purpose of this article is to record and share, and it can be used as an operational reference. The author is just out of interest, not professional
  • This article is based on Tencent Cloud's free trial cloud server. From the registration, a simple website construction including pictures, texts, audio and video, and hyperlinks is completed, and the important parameter configuration is explained with examples, so that readers can learn from one example to find the right cloud for them. platform
  • This article is aimed at users who have zero foundation and want to build a personal website to complete lightweight web applications. Lightweight: maintain applications such as web pages and hyperlinks, and maintain files such as videos, audios, and documents
  • The 0 yuan in the title refers to the learning and trial process, not a website for long-term official use. The author did not find a long-term free cloud server.
  • I wish readers can have some perceptual and quantitative understanding of some elements, steps and parameters of website construction after completing the operation in accordance with this article

 

0 material

1 step

1.1 Prepare the cloud server

1.1.1 Registration

1.1.2 Real-name authentication

1.1.3 Claim cloud server

1.1.4 Log in to the cloud server

1.2 Hello World

1.2.1 Open port 8888

1.2.2 Pagoda

1.2.3 Add a website

1.2.4 Access

1.2.5 Add web page

2 domain name


 

0 material

If you just play for yourself or try it out in a small area, and don’t care about stability and calculation, then a personal computer with Internet access will do.

If you want the website to be stable and have certain computing power, you need a personal computer + cloud server , and the final URL is http://10.1.2.3/test.html

If you want the website to be stable and have certain computing power, and the URL is presented in the common form of http://www.baidu.com, then you need a personal computer + cloud server + domain name

This article balances the dimensions of operation difficulty, function, performance, and practicality. It first gives the operation steps of building a website on a personal computer + cloud server, and then supplements the content of the domain name.

 

1 step

1.1 Prepare the cloud server

1.1.1 Registration

Log in to https://cloud.tencent.com, register in the upper right corner: It is recommended to use WeChat to scan the code to register, so as to receive relevant information conveniently

1.1.2 Real-name authentication

After completing the registration and login, there will be a prompt for the user to complete the real-name authentication.

Verification of authentication steps: Enter https://cloud.tencent.com in the upper right corner, "Console" -> "Avatar" -> "Account Information" -> "Authentication Status" is the "Authenticated" status in the figure, if it is If "not authenticated", follow the prompts to complete the authentication

1.1.3 Claim cloud server

Go to https://cloud.tencent.com/act/free and click "0 yuan trial" in CVM, pay attention to the "number of cores" and "memory", the number of CPU cores and memory capacity of this server, when it really starts When building a website, you need to find a server with suitable parameters such as the number of cores, memory, and hard disk capacity based on the calculation amount of the tasks you want to run. This server is only for trial use.

There is no need to change various parameters, just try the default configuration directly. Here we should pay attention to the "operating system". It is recommended to choose Centos 7.6 64-bit, and you can see the corresponding interface when you log in to the server later, that is to say, the cloud server can be used as A PC is used, but it is in the cloud, and various hardware configurations can be changed at any time as needed. Running a question: When 5G develops and the bandwidth and network speed are sufficient, do our mobile phones and computers only need screens, network cards, mouse and keyboards, so that there will be no waste of side computing resources? , and everyone can increase/decrease resource allocation at any time as needed.

1.1.4 Log in to the cloud server

Go to "Console" -> "Mailbox"

Find the " Product News - [Tencent Cloud] Cloud Server Created Successfully " email, which contains the basic information of the newly applied server: username, password, etc.

In addition, you can see in "Console" > "My Resources", the number of cloud servers is 1, click to enter.

You can see that there is a server information in the list:

If the list is empty, pay attention to select "Beijing" on the right side of "Instance", because the server we just applied for belongs to Beijing, click "Login", after scanning the code on WeChat, click "Login Now" in the recommended way

Reply to the mailbox to find the password, fill it in, and log in. You can normally type in basic linux commands such as ls and cd to prove that the server application is completed. This server can be used not only for website construction, but also for daily work and life.

1.2 Hello World

1.2.1 Open port 8888

Go back to the "Instance" interface, enter "Security Group" -> "Modify Rules"

Add a rule to Inbound Rules:

1.2.2 Pagoda

Log in to the cloud server and type the command:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

Yes all the way, after the installation is successful, you can see Bt-Panel, username and password, about 1~2min

Open Bt-Panel in the browser, log in with username and password, and you will see a pop-up window when you log in for the first time: It is recommended to install the software, just select the quick installation on the left. If there is no pop-up window interface for this quick installation, then change the browser. I can’t use IE8 or chrome, but I can use firefox.

Wait for the installation to complete, about 4~5 minutes.

1.2.3 Add a website

Add the ip address of "Primary Ipv4 (Public)" in "Website" -> "Add Site" -> "Domain Name", and click OK.

1.2.4 Access

On the "Pagoda" -> "File" page, you can see the folder corresponding to the ip added in the previous step, and some files can be seen in it. These are the secondary files under the root directory of this ip address, which can be accessed on the public network arrive.

For example, if your ip is 1.2.3.4, the URL of index.htm is: http://1.2.3.4/index.htm, try to see if you can open this URL on other terminals that can access the Internet, yes If so, it is a success.

1.2.5 Add web page

Add text:

First add the simplest web page to try something new. Create a new word, type the content casually: hello world, save the word as a file in htm format, for example, the file name is a.htm, upload this htm file in "Pagoda" -> "File" -> "ip folder" , after the upload is successful, visit http://1.2.3.4/a.htm on the public network, if you can see hello world, it is successful~

In the same way, you can add any text content in Word, such as a resume. When you are looking for a job, you can directly throw a link to the other party, which is very concise.

add pictures:

First upload pictures, videos, music, etc. anything you want to reflect on the webpage, such as test.jpg, then the URL of this file is http://1.2.3.4/test.jpg, you can try this first. This link cannot be opened on the public network and the picture can be accessed normally. Then use word to open the htm document you just created, and operate as shown in the figure, you can see that the picture is inserted into the htm document in the displayed state, and note that http:// needs to be added to the URL. Upload this htm document (a.htm), visit http://1.2.3.4/a.htm to see text and pictures.

Add the rest of the files:

Still upload the file to the pagoda's file directory first, so that this file can get a URL that can be opened on the public network, open the htm file with word, select a text, right-click "hyperlink", and fill in the URL corresponding to the file as Hyperlink, and then upload this htm.

The above has built a most basic and basic website function, Sahua~

2 domain name

Sleepy...will update later

 

 

Guess you like

Origin blog.csdn.net/u012824853/article/details/113804675