web knowledge


First, the server Introduction

(1) server

Server refers the client to provide a service under the network environment 专用计算机. Server installed network operating system (such as windows, Linux, Unix, etc.) and a variety of server applications software (such as web services, e-mail service).

Server main function is to provide online information browsing service 可以通过域名访问to it.

(2) server software:

Server software may receive a user request, processing the request, responds.

(3) web server software

web server software can also receive a user request, processing the request, accordingly. Also known as Web container.

Common Java-related web server:

web server name Owned company Types of Support for JavaEE specification Whether charges
webLogic oracle company Large JavaEE server Supports all JavaEE specifications toll
websper IBM Corporation Large JavaEE server Supports all JavaEE specifications toll
JBOSS JBOSS company Large JavaEE server Supports all JavaEE specifications Indirect charges
tomcat Apahe基金组织 中小型的JavaEE服务器 仅支持少量的JavaEE规范 免费且开源

Add JavaEE: Java language used in the enterprise development 技术和规范的总和, specification provides for a total of 13 large.

Second, the software architecture

(1) C / S: client / server

Advantages: 效果炫酷a portion of the code written to the client ( 速度快).
Cons: server-side updates, the client will be updated.

(2) B / S: browser / server (belonging JavaEE-B / S)

Advantages: 服务器端更新,浏览器不需要更新。
disadvantages: not dazzle effect, all of the code running in the server, the server may cause excessive pressure.
Interface performance issues: the use of HTML5, CSS3 can make a flashy effect.
Server-side pressure problem: 搭建服务器集群You can also use Ajax技术partial refresh.

Third, server resource classification

Here Insert Picture Description

(1) Static Resource

Such html,css,JavaScriptas: .
Static resource : the results obtained after all users access the same.
Static resources 直接被浏览器解析.

After the static resource is requested, it may be returned directly to the browser. Browser parses these static resources through the built-in static resource parsing engine, demonstrating the interface.

(2) Dynamic Resource

Such servlet/jsp,php/asp等as: .
Dynamic resource: the results for each user access to the same resources, the same may not be obtained.
Dynamic resource needs 先转换为静态资源后,再返回给浏览器.

After being dynamic resource request is first converted to a static resource, and then returned to the browser, then the browser's built-parsing engine parse static resources, demonstrating interface.

Fourth, the three elements of the communication network

(1)IP

IP: 电子设备(计算机)the unique identifier of the network.

(2) port

Port: 应用程序a unique identification in the computer.

规定端口号在0 ~ 65536之间. So when after recommend their written applications, do not take the port within 1024, because the operating system is likely to be occupied.

(3) Transfer Protocol

Transfer Protocol: provides rules for data transmission.

The basis of the agreement are:

  • tcp协议: Secure protocol, three-way handshake. Slow.
  • udp协议: Insecure protocol, a broadcast protocol. high speed.
Published 334 original articles · won praise 873 · views 130 000 +

Guess you like

Origin blog.csdn.net/weixin_43691058/article/details/103995010
Recommended