In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. introduction of Squid agent
Squid is a software that caches Internet data, which receives download requests from users and automatically processes the downloaded data. When a user wants to download a home page, he can send an application to Squid to download it instead of Squid, then Squid connects to the applied website and requests the home page, and then sends the home page to the user while keeping a backup. When other users apply for the same page, Squid immediately sends the saved backup to the user.
According to the different types of agents, Squid agents can be divided into forward agents and reverse agents. According to the different ways of implementation, forward agents can be divided into ordinary agents and transparent agents.
Normal proxy: requires the client to specify the address and port of the proxy server in the browser.
Transparent proxy: suitable for the gateway host of an enterprise (shared access Internet), the client does not need to specify the address and port of the proxy server, and the proxy server needs to set a firewall policy to transfer the client's Web access data to the proxy server for processing.
Reverse proxy: it means that the proxy server accepts the connection request on the Internet, then forwards the request to the server on the internal network, and returns the result obtained from the server to the client requesting the connection on the Internet. At this time, the proxy server acts as a server externally.
Second, Squid sets up the experimental environment.
Set up web server
Squid proxy server configures dual network cards
You can access the web server directly through client, and view the web server access log at this time.
Third, the experimental steps
-- squid proxy server settings--
1. Install the squid package
[root@yandada2] # rpm-ivh / mnt/Packages/squid-3.1.10-19.el6_4.x86_64.rpm
two。 Configuration file
[root@yandada2 ~] # vim / etc/squid/squid.conf
The http_access allow all / / matching rule is to match one by one, which needs to be written before deny.
Cache_dir ufs / var/spool/squid 10016256 / / absolute path of cache directory, cache directory size, first-level subdirectories and second-level
Number of subdirectories
Cache_mem 64 MB / / cache space size
Maximum_object_size 4096 KB / / maximum cache file size
Http_port 3128 / / Port number
Visible_hostname yandada02.benet.com / / set the hostname
3. Initialize and start squid
[root@yandada2 ~] # squid-zX initialization
[root@yandada2 ~] # squid enable function
-client settings--
-- web server view--
Vim / etc/httpd/logs/access_log
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.