fablefe 发表于 2015-9-3 10:56:21

6.3安装squid

  1. Frist you need to install Development tools #yum groupinstall "Development Tools" 2. Get the“squid 2.7 ” source.decompress it.   #wget http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.gz #tar -xzvfsquid-2.7.STABLE9.tar.gz 3. change directory to squid -2.7
root@xyzsquid-2.7.STABLE9]# checkconfigure options by#./configure   -help 4.Select your configuration like ./configure --enable-gnuregex--enable-carp --with-pthreads --enable-heap-replacement --enable-icmp--enable-delay-pools--enable-useragent-log --enable-htcp --with-openssl--enable-linux-netfilter--disable-internal-dns --enable-auth=digest,ntlm,basic--enable-auth-baisc=PAM,NCSA,LDAP --enable-auth-basic=none--enable-basic-auth-helpers=PAM,NCSA,LDAP--enable-external-acl-helpers=unix_group,ldap_group --with-filedescriptors=8192   --enable-removal-policies=lru,heap 5.Makeit. #make Installation forinstallation you need to have root privileges . #su
#make Install ifyou get it without errors congratulate yourself. andproceed to next step . Yourdefault installation directory is #/usr/local/squid/ 6.post-Installation   Aftercompiling and installing squid, you should create the cache_dir, give it therights permissions for the squid user/group and then run:

#/usr/sbin/squid-z
toinitialize the cache_dir and create the necessary subdirs
Ifeverything works as expected then try to start squid normally
   
Code:
   
#/usr/sbin/squid
  7. Debug.

Ifyou get any errors start squid in debug mode to get the errors onscreen:
   
Code:
   
#/usr/sbin/squid-N -d 5
页: [1]
查看完整版本: 6.3安装squid