当前位置:网站首页>Basic knowledge of web pages (URL related)

Basic knowledge of web pages (URL related)

2022-06-25 04:55:00 Two kings lead two teams

url form : agreement // website / Virtual directory / file name # anchor

The partial :http://、https://( You do not need to enter... When entering the web address , Web pages will be automatically added )

website :www.baidu.com.

domain name :baidu.com

Top-level domain name : Institutions 、 Country

.com: business organization

.org: Non profit organizations

.gov: government organs

.edu: Educational and research institutions

.cn: China

.us: The United States

Two level domain name : Branches and formula products sometimes use secondary domain names

Such as :mail.qq.com

Static website :

1. After the content is published on the website, it is saved on the website , The content of the document is fixed

2. The content is relatively stable and easy to search

3. No database support ( Heavy production and maintenance workload )

4. Poor interactivity

Dynamic website :

1. Interactivity , Web pages will dynamically change and respond to users' needs .

2. Auto update , Save work

3. Change with people , Different time , Different users have different access contents

  

The relationship between dynamic websites and static websites is mutually exclusive , Dynamic website to asp,jsp,php,perl,cgi In the form of , instead of html etc.

The basic concept of the website :

The server : Devices that provide computing services (server) Including documents 、 database 、 Applications ,web etc. , The function of the server depends on the service software installed on the computer :Apache、tomcat、iis etc.

ip Domain name :

ip The address is unique , The function of domain name is to replace ip Address

DNS( The domain name system ): And ip Domain name mapping , Resolving domain names makes it easier for users to find the Internet

port (port): Virtual and physical ports

The outlet for communication between equipment and the outside world , The virtual port is inside the computer or inside the switch router , invisible

Physical ports are interfaces .

Access Process :

User input ->DNS-> Server computer -> Virtual ports ( Server software )

Static web address :

Personal computer : browser        ( Connected to the Internet )       Server computer : Apache, Folder : Many web pages  

Input url                 dns( Local ip      The Internet ip)  :   The Internet ip To local computer      Find the server computer , adopt 80 Port find service software apache

 http//localhost:80/index.html Indicates the relative directory of the file ;                            apache Return the results to the browser , Browser parsing                                                                       

  Dynamic website :

http://localhost:80/index.php

mysql database ( Command line operations )

Access requires searching 、 matching 、 Connection authentication .

The host address :-hlocalhost( It saves )

port :-P3306( It saves )

authentication : Enter the server through user name and password ( Don't omit )

user name :-uroot

password :-proot

namely :mysql -hlocalhost -P3306 -uroot -proot

Virtual host :

Name the folders on your computer differently , Then the implementation allows the server to change from different folders according to the needs of users ( Website ) Read different contents in

classification :

1、 be based on ip Virtual host of address , There are multiple on one computer ip, Every ip Corresponding to a website .

principle : There is only one computer by default ip, Because there is usually only one network card : But some computers ( Most servers ) You can configure multiple ip Address

2、 Domain based virtual host , There is only one computer ip, however IP You can create multiple websites , But give each site a different name ( Virtual host name )

原网站

版权声明
本文为[Two kings lead two teams]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202210531285968.html