Squid proxy server General Unix, Linux comes with it. I am using CentOS 5.3, and Squid is self-compiled.
Squid Default cache_mem 100 16 256
Open /etc/squid/squid.conf
Configure
$vi /etc/squid/squid.conf
#http_port , is the proxy port, if no other http services occupy 80 ports or 8080, you can configure these two ports, it is easy to remember. I am equipped with 8086. The default port is 3128
http_port 8086
#Set the cache memory size to 1G, my server memory is 2G.
cache_mem 1000 MB
#Set the cache_dir address, the first numeric parameter can't be smaller than the size set by cache_mem, otherwise it will warn “WARNING cache_mem is larger than total disk cache space!” , so set to 1000. 16, 256 represents the first level and second level directory. After setting up, you need to use squid -z to make the cache directory take effect.
cache_dir ufs /var/spool/squid 1000 16 256
#Set to allow access by everyone, the default is to prohibit anyone from using the proxy. Error: "The requested URL could not be retrieved while trying to retrieve the URL: ...”
http_access allow all
#Set visible_hostname , otherwise an error will be reported: <;FATAL: Could not determine fully qualified hostname. ” Please set 'visible_hostname'
visible_hostname zhhproxy
#Others are saved with default values.
$squid -z
Creating Swap Directories
$squid -NCd1
Running in the foreground for easy debugging. Debugging is done directly by executing Squid to run it as a sprite process.
See the print Ready to serve requests. Ready.
On the article about script intrusion, the Internet is already flooding. Although there are many ori
What is the most regrettable thing for intranet users? Of course, it
Dynamic feedback load balancing algorithm considers the real-time load and respon
Windows Server 2008 as a print server platform is undoubtedly a very good choice, because it provide
FTP server questions about permissions
Tcp&Dns working mechanism under Linux
Nginx reports "readv() failed (104: Connection reset by peer)"
Apache and IIS advantages and disadvantages
IIS server and web.config configuration optimization guide
Nginx server cache settings example explain
In-depth analysis of IIS 6.0 (two)
How to close the win7 system screen keyboard
Win10 preview version 10240 is now 0x80310052 error how to fix?
Some tips you must master when using the Metro application under Win8.1 system
How to check the host number and model number of the desktop under win7 system
Win7 system prompts "Cannot access the specified device path or file" What to do
Do you want to create multiple file names on win7
Steps to establish network neighbor access rights in Windows 7
Five strokes to solve the problem of delay after XP startup
Win7 mouse right-click menu displayed on the left side of the arrow how to change back to the right?