First, the preparation work is best to establish a dedicated run account and user group for Squid. For example, establish a new account TEST1, with this account as a TEST group, set the root directory of the account to / usr / local / squid. The following operations are completed by this dedicated account. Second, download: You can download the Squid proxy server software at http://squid.nlanr.net/squid/. The file name is Squid-2.2.stable3-src.tar.gz. This is a data package that compresses. Suppose we put it in the / usr / local / squid / src directory after downloading. Third, decompress the packet into the / usr / local / squid / src directory, type the following command: gzip -dc squid-2.2.stable3-src.tar.gz | tar -xvf - This command will open the data, establish A directory is called Squid-2.2.STable3 and puts all the files in this directory. 4. Compile the source program first run the configuration script to generate a compilation script that is suitable for your machine. The command format is: ./ Configure generated compilation script after compiling the default installation path is / usr / local / squid. If you want to change the installation path, you need to use the following format: ./ Configure -prefix = / Some / Other / Directory This method is compiled into / some / Other / Directory. After generating compilation scripts, you can formally start compiling. The command is: make 5. Install the Squid proxy server compilation, installation is simpler. After the command is: make install installation, you will generate a Squid directory in the installation path you specified, and there are three directories in the Squid directory: etc, bin, logs. Where ETC is a configuration file, the bin is an execution file, and the logs are log files. 6. After the debug broker server is installed, it is the debug server to make it work according to your requirements. Squid's configuration file has only one, in the ETC directory, the name is Squid.conf, all configuration options are in this file. And each configuration item has an annotation description. We will not introduce all the configuration items, only introduce several commonly used projects. First, find the following configuration items in the Squid file: cache_mem You can add you to Squid as a memory size used as a cache. Note that if your machine has n toemon memory, then it is recommended that the number added here is N / 3. Cache_dir / usr / local / squid / cache 100 16 256 The first number here is that you are ready to use the hard disk space size used as cache, and the unit is a megab. If you want to print 100M space as cache, then write 100 here. ACL, HTTP_ACCESS, ICP_ACCESS Fill in the "Allowed Host" ACL Access Control List with your network address (such as 192.168.10.0) and subnet mask (such as: 255.255.255.0). This is an important item that prevents you from stealing your network resources without your authorized people.