First, compile and install
Download
#wget http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE25.tar.gz //Find the address #tar zxvf squid-3.0.STABLE25.tar.gz //Stable version #cd squid-3.0.STABLE25
#./configure --prefix=/usr/local/squid //Must
//The following steps are optional
--enable-arp-acl /--enable-linux-netfilter /--enable-pthreads /--enable -err-language="Simplify_Chinese" /--enable-default-err-language="Simplify_Chinese" /--enable-underscores /--disable-internal-dns /--enable-pf-transparent /--enable -referer-log
//Compile must
#make#make install
Note:--enable-internal-dns Do multiple websites Used when reversing the proxy, allowing the use of internal dns, or changing /etc/hosts================================ =================================================================###################################################
#mkdir /usr/local/squid/var/cache
#mkdir /usr/local/squid/var/logs
#chown -R squid:squid /usr/local /squid/var/cache //default nobody transport Line
#chown -R squid:squid /usr/local/squid/var/logs
#squid -z //Initialize the cache directory #squid -zX to view the initialization process
If you can't use it. /squid -z
In /etc/hosts: Add internal DNS resolution, for example:
192.168.1.65 www.squid.com
#whereis squid #You can see where Squid's main files are loaded
Four, create a cache directory
#/usr/local/squid/sbin/squid –z
//To see the command line to create a cache under 00 01 and other directories Successful
Start Squid
#/usr/local/squid/sbin/squid start
Reload Squid
# /usr/local/squid/sbin/squid restart
Stop squid:
#/usr/local/squid/sbin/squid -k shutdown
Start with new configuration :
#/usr/local/squid/sbin/squid -k reconfigure
Truncate/round-robin log at 0:00 per day via crontab:
0 0 * * * (/usr/local/squid/sbin/squid -k rotate)
You can use the following command to find the cached file
#cd /Usr/loc Al/squid/var/cache
#find -type f
With the increasing use of Linux, there are a large number of network servers using the Linux operat
When dealing with Oracle problems in the actual production environment, sometimes you need a remote
In daily work or experiment, we often need to clone or migrate the virtual machine. After the migra
1 Start vSphere Client2 Start Virtual Machine [Right-click on VM, select Power —>Open] and
Method for binding a socket to a network device under Linux
Magento file and folder permissions set method
Introduction to Linux Cluster Technology
When using yum, another application is applying yum lock; wait for it to exit
Linux user disk space restrictions Brief description
Steps to modify the original Linux hostname
TNS-12555: TNS:permission denied error resolution
Quartz Time Configuration Basic Tutorial
LCD & framebuffer development experience
Microsoft confirmed that Windows 7 SP1 is about to be released
Win10 Redstone preview version Build 11099/11102 upgrade error solution
Win10 Xiaona is a little problem can not be played, what should I do?
How to modify the default installation location of windows 10 application store software?
How to manually add a configuration file to connect to a wireless network VISTA system
Running daemon tools in win7 prompt "Unable to load adapter"
Solve the NSIS error in the Chinese version of Win8 system
Win8 is not compatible and can not run normally.
Windows 8.1 official version disables automatic maintenance features