1. Install Squid and Configuration
1. Install Squid
Yum-yinstallsquid *
2. squid configuration file
/Etc/squid. conf
3. squid operation
Servicesquidstart/stop/restart
4. Reload the configuration file
Squid-kreconfig
Ii. Common configurations of Squid
# Enable http_port 192.168.10.1: 3128 # Set the memory size cache_mem 64 MB # cache object size maximum_object_size 4096 KB # allow the proxy server to download the maximum limit reply_body_max_size 10480000 allow all # process log access_log/var/log/squid/access. log # prompt host information visible_hostname 192.168.10.1 # cache setting 100 is the size, 16 is the first-level directory, and 256 is the second-level directory cache_dir ufs/var/spool/squid 100 16 256
3. In addition to the above configurations, the squid firewall configuration must be configured
# Add acl Access Control List acl innet src 192.168.10.0/24acl all src 0.0.0.0/0.0.0.0 # configure the list permission http_access allow innethttp_access deny all
Iv. squid log
Cache. log cache logs
Squid. out Error Log
Store. log storage log
This article is from the "phper" blog, please be sure to keep this source http://janephp.blog.51cto.com/4439680/1304056