squid4

  squid on the host have been a fool to use, yum installation, the default configuration, the Millennium does not move. Suddenly sweeping out drain version 3.X is not used, the next search to obtain 4 liters. Amazing discovery centos7 source (Ali source) which turned up only three. Internet search using the yum install are also 3, do not know why. I had deleted 3, 4 installed manually. The following is a record.

1. Download: http: //www.squid-cache.org/Download/

2, the installation: See: "Squid-4.1 (latest) installation and construction of a proxy server"

# ./configure --prefix=/usr/local/squid --sysconfdir=/etc --enable-arp-acl  --enable-linux-netfilter --enable-linux-tproxy  --enable-async-io=100  --enable-err-language="Simplify_Chinese" --enable-underscore --enable-poll --enable-gnuregex
# make && make instal

3, Configuration: Using the default configuration

4, the fill hole: according to the above is performed not run up.

  • Pit 1: You must use root installation, with sudo privileges, and execute commands with sudo will not work, the process will be reported in a variety of access is not enough. Certainly there are ways other low privileges to install and use, but no time to study.
  • Pit 2: Bahrain must use the / usr / local / squid / sbin / squid -z initialize cache space

5, Other: log in / var / log / squid, may be added in the configuration file The debug_options ALL,. 4 , for analysis. Attached a few squid command:

/ usr / local / Squid / sbin / Squid - z buffer space initialization
 / usr / local / Squid / sbin / Squid start
 / usr / local / Squid / sbin / Squid -k the shutdown Stop
 / usr / local / Squid / sbin / Squid - k reconfigure reload the configuration file
 / usr / local / Squid / sbin / Squid -k Rotate log Round Robin

 

Guess you like

Origin www.cnblogs.com/badwood316/p/12046611.html