Squid in Windows

Source: Internet
Author: User

This tutorial is intended to share with you how to configure squid on a Windows host. Where is the write incomplete, incomplete, or need to be modified. I will immediately correct it. See the text section below.
Note that the computer on which you pre-install and configure squid must be connected to the network. The system version is Windows 2000/XP/2003/Server 2003.
1) first download squid for Windows version, as follows (ZIP file name: squid-2.7.STABLE4-bin.zip), you can download this file to the desktop, so that you can find a good operation.
Squid is a well-known Agent server software in Linux/Unix. Many commercial agent servers are developed based on squid: Http://www.squid-cache.org/products.html
Recently, squid was also available for Windows: Http://www.acmeconsulting.it/SquidNT/download.html
Although this version is not officially released by the Squid Project for Windows, it can be seen from the release records that the maintainer of this version is still very responsible. If you want to build a proxy server on Windows, try it out.
Http://squid.acmeconsulting.it/download/squid-2.7.STABLE4-bin.zip
2. Extract the downloaded ZIP file (squid-2.7.stable4-bin.zip) to the root directory of drive C. Right-click the file and select the extract to squid-2.7.STABLE4-bin command to generate a squid folder in the root directory of drive C. In this way, squid for Windows is "installed" on your computer. Note: Do not change the path and folder name as much as possible. Put it in the root directory of the C drive. Do not change the folder name, that is, squid. Because squid for Windows is installed at c: \ Squid by default, everyone should be cautious about this. If you want to modify the path and folder name, You have to modify many configurations in Squid, which is quite troublesome.
3) Start-run-cmd. Open the window and press the doscommand line to enter the command.

4) Close the DOS window and return to the desktop. Go to my computer-drive C, double-click to open the squid folder, double-click to open the squid. conf file, and edit the configuration of this file. Press Ctrl + F, enter ACL safe_ports port 777, and press Enter. Press Enter next to # multiling HTTP and add a space. The written content is shown in.

5) press Ctrl + F and enter http_access deny connect. Press enter to find the content. After ssl_ports, press enter to add two blank lines. For more information, see.

6) Find the # cache_mem 8 Mb sentence and delete the previous # number to change the default 8 to the required size. The value here depends on the available memory of the specific machine, the maximum size should be set as much as possible to improve the performance of the proxy server, but the cache size of the proxy server cannot affect the performance of the machine. As shown in.

7) set the hostname. Please follow the procedure.

8) press Ctrl + S to save and edit the squid. conf file, and then close it.
9) Start-run-CMD and enter the following three commands.
Cd c: \ squid \ sbinsquid-I
Squid-z
Squid
10) the configuration is complete.

Http://blog.chinaunix.net/u/14353/showart_226851.html

 

Test results:

1. Rename mime. conf. Default in c: \ squid \ etc to mime. conf, and squid. conf. Default to squid. conf.

2. modify the content of squid. conf above to customize the proxy port of http_port 3128. Note that the value of cache_mem 8 Mb should not exceed 8 MB, which may not be supported by your hardware.

3. c: \ squid \ sbin \ squid.exe-Z. DOS prompts you to create some folders and follow the above operations.

4、squid.exe-I Registration Service

5. manually start squid in the service

-----------------------------------

In Linux, you can set a global proxy like this (NT does not seem to have a way to set the Global Proxy ).

Edit. bash_profile in the root directory and add the following two lines

Http_proxy = http: // 192.168.126.18: 3128 #3128 is the custom proxy port in Squid. conf.
Export path http_proxy

Successful!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.