有二种服务器形式

c-s架构

client端-server端
比如非网游游戏,outlook,微信,QQ,mysql

b-s架构

browser-server ,浏览器-服务器架构

browser:
firefox,IE,chrome,
server:
nginx,httpd server(apache),IIS

web服务器(静态内容服务)

nginx,httpd,IIS,xitami,httplight

URL: uniform resource link
URI: uniform resource indicator

访问一个页面,都是一个资源,资源没有,就返回404 Page Not Found

GET:
POST:

nginx安装

yum -y install epel-release
yum -y install nginx

nginx的虚拟主机的配置

http协议介绍

tcp/ip

问题: 三次四次挥手
TCP,UDP的区别,哪个是有连接的协议。
什么是握手
什么是挥手

哪4层?
http 协议的端口 80
https 协议的端口 443

获取header信息

[root@db01 ~]# curl -I -j   www.baidu.com
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Connection: keep-alive
Content-Length: 277
Content-Type: text/html
Date: Thu, 21 Sep 2023 06:48:00 GMT
Etag: "575e1f60-115"
Last-Modified: Mon, 13 Jun 2016 02:50:08 GMT
Pragma: no-cache
Server: bfe/1.0.8.18

应用服务器(动态内容服务)

web服务器 + 数据库+ 代码 ,包含了业务逻辑
包含:
tomcat,glashfish,jboss,weblogic,wesphere,IIS

作者:严锋  创建时间:2023-09-14 15:07
最后编辑:严锋  更新时间:2025-05-22 13:03