码迷,mamicode.com
首页 > 其他好文 > 详细

squid安装

时间:2015-04-14 00:51:20      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

./configure ‘--build=x86_64-redhat-linux-gnu‘ ‘--host=x86_64-redhat-linux-gnu‘ ‘--target=x86_64-amazon-linux-gnu‘ ‘--prefix=/usr/local/squid‘ ‘--disable-dependency-tracking‘ ‘--enable-arp-acl‘ ‘--enable-follow-x-forwarded-for‘ ‘--enable-auth-basic=LDAP,NCSA,PAM,SMB,getpwnam,SASL,DB,POP3‘ ‘--enable-external-acl-helpers=session,unix_group,wbinfo_group‘ ‘--enable-cache-digests‘ ‘--enable-cachemgr-hostname=localhost‘ ‘--enable-delay-pools‘ ‘--enable-epoll‘ ‘--enable-icap-client‘ ‘--enable-ident-lookups‘ ‘--enable-linux-netfilter‘ ‘--enable-referer-log‘ ‘--enable-removal-policies=heap,lru‘ ‘--enable-snmp‘ ‘--enable-ssl‘ ‘--enable-storeio=aufs,diskd,ufs‘ ‘--enable-useragent-log‘ ‘--enable-wccpv2‘ ‘--enable-esi‘ ‘--with-aio‘ ‘--with-default-user=squid‘ ‘--with-filedescriptors=16384‘ ‘--with-dl‘ ‘--with-openssl‘ ‘--with-pthreads‘ ‘--disable-strict-error-checking‘ ‘build_alias=x86_64-redhat-linux-gnu‘ ‘host_alias=x86_64-redhat-linux-gnu‘ ‘target_alias=x86_64-amazon-linux-gnu‘ ‘CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpie‘ ‘LDFLAGS=-pie‘ ‘CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpie‘ --with-squid=/home/ec2-user/squid-3.5.2
#!/bin/sh 
echo -n ‘ Squid ‘ 

case "$1" in 
start) 

/usr/local/squid/sbin/squid -s
;; 
stop) 
/usr/local/squid/sbin/squid -k shutdown 
;; 
restart) 
/usr/local/squid/sbin/squid -k reconfigure 
;; 
*) 
echo "Usage: `basename $0` {start|stop|restart}" 
;; 
esac


squid安装

标签:

原文地址:http://my.oschina.net/hanoi/blog/400750

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!