What is the relationship between website source code, server and domain name

What is the relationship between website source code, server and domain name

A complete website is inseparable from three major pieces, namely: website source code, server, and domain name. The server is the platform used to store website data in the background and support the operation. When the programmer writes the source code of a website, he needs to upload the source code to the server first, then bind the domain name on the server, and point the domain name resolution to the server’s IP, after these operations, when the user accesses the domain name, it is actually equivalent to sending an access request to the server locally. After receiving the request, the server will call out the data required by the user and display it on the user's screen in the form of a web page. .

Website source code

The source code of a webpage is the language composition of the webpage, which refers to some special "languages" that need to be used in the process of making webpages. Programmers organize and arrange these "languages" to create webpages, and then the browser executes the code. After "translation" is the effect we finally see. Writing a program is like cooking, the same theme, everyone's ideas and practices are different. For the same tomato scrambled egg, A puts the tomato first, B puts the egg first, and C may add some sugar. Although the appearance is the same, the flavor may be quite different.

server

In fact, the server is just like our home computer, and it also has a motherboard, CPU, memory hard disk, power supply, etc., but because they deal with different problems, the server is more like an enhanced computer, which is responsible for recording, storing, Processing data, and supporting data distribution, once the server fails, the website will be inaccessible. The server is the basis for ensuring fast and stable access to the website. According to the region where the server is placed, it can be divided into domestic database, server, overseas server and so on.

domain name

A domain name is a domain name that you register and buy from a domain name service provider, that is, its domain name, which is unique on the Internet. It is just a name of your website, and others can enter your website through this. It is like your public ID number on the Internet. If you output your domain name on the webpage, only your information will appear, and no irrelevant content will be displayed.
-----------------------------------
 

Guess you like

Origin blog.csdn.net/fzy18757569631/article/details/131941393