Use Squid proxy cache deployment services

Forward proxy lets users can obtain data such as Squid Web page service program, the specific forms of work is divided into standard proxy mode and transparent proxy mode.
Normal forward proxy mode:

The site's data cache on the server locally, improve the efficiency of resource data is accessed again, but the user must specify a proxy server in the Internet IP address and port number, otherwise it would not use Squid service.

Transparent forward proxy mode:

Function with a standard forward proxy mode exactly the same, but the user does not need to specify the proxy server's IP address and port number, so this proxy service for users but is completely transparent.

Reverse proxy server is to reduce the load and design, reverse proxy server responsible for responding to user static pages on the original site server requests, that is, if there happened to be a static resource users to access directly the reverse proxy server will cache content to the user, reducing the portion of the original resource request data server.

 

 

 

One,

Installation Services: yum install squid -y

Add card :( bridge)

 

 Setting new IP card:

 

 

 

 Install httpd service on another virtual machine, and then write something

yum install httpd -y

systemctl  restart httpd 

Write to:

 

 

 

 

 IP modify the virtual machine:

 

 

 

 

 

Open Client Settings IP:

 

 Modify the configuration file squid services

 

 

 

Restart the service: systemctl restart squid

 

 

experiment:

 

 

 

 

 

 

 

 View server log:

 

 

Guess you like

Origin www.cnblogs.com/hzk001/p/11967853.html