<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[squid编译参数说明]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[服务器技术]]></category>
<pubDate>Thu, 28 Apr 2011 04:50:48 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/>./configure --prefix=/usr/local/squid &#92; <br/>--disable-carp &#92; <br/>--with-aufs-threads=32 &#92; <br/>--with-pthreads &#92; <br/>--enable-storeio=&#039;ufs,aufs&#039; &#92; <br/>--enable-disk-io=&#039;AIO,Blocking&#039; &#92; <br/>--enable-removal-policies=&#039;heap,lru&#039; &#92; <br/>--disable-wccp &#92; <br/>--enable-kill-parent-hack &#92; <br/>--disable-snmp &#92; <br/>--disable-poll &#92; <br/>--disable-select &#92; <br/>--enable-auth=basic &#92; <br/>--with-aio &#92; <br/>--disable-ident-lookup &#92; <br/>--with-filedescriptors=65536 </div><br/><br/><div class="code"><br/>编译选项注解： <br/>--prefix=/usr/local/squid&nbsp;&nbsp;&nbsp;&nbsp;//指定安装路径 <br/>--enable-arp-acl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //这样可以在规则设置中直接通过客户端的MAC地址进行管理，防止客户使用IP欺骗 <br/>--enable-async-io=80&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //这个主要是设置async模式来运行squid，如果服务器配置很不错，有1G以上内存，cpu使用SMP的方式的话可以考虑设成160或者更高，如果服务器比较糟糕就根据实际情况设了，另外此项还使cache文件支持aufs <br/>--enable-auth-modules&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//此编译选项启用认证模块，可以对访问代理用户进行授权； <br/>--enable-cache-digests&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //使能缓存摘要，本来此项目的是为了在Squid集群服务之间迅速发现缓存对象，这里在本地使用，可以加快请求时，检索缓存内容的速度； <br/>--enable-err-language=&quot;Simplify_Chinese&quot; 和--enable-default-err-languages=&quot;Simplify_Chinese&quot; //指定出错是显示的错误页面为简体中文 <br/>--enable-delay-pools&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //此选项使能一个延时池，这样能对某些特定的请求限制额定带宽。 <br/>--enable-gnuregex&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//由于Squid大量使用字符串处理做各种判断，加此项能更好处理。 <br/>--enable-icmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//加入icmp支持 <br/>--disable-ident-lookups&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//防止系统使用RFC931规定的身份识别方法。 --enable-kill-parent-hack&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//关掉suqid的时候，连同父进程一起关掉 13.--enable-linux-netfilter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //允许使用Linux的透明代理功能。 <br/>--enable-poll&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//应启用Poll()函数而不是select()函数，通常而言poll(轮询)比select要好，但configure(脚本程序)已知Poll在某些平台下失效, 若你认为你比configure编译配置脚本程序要聪明的话，可以用这个选项启用Poll。总之就是用这个可以提升性能 <br/>--enable-snmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //此选项可以让MRTG使用SNMP协议对服务器的流量状态进行监测； <br/>--enable-storeio=ufs,null&nbsp;&nbsp;&nbsp;&nbsp; //使用的文件系统通常是默认的ufs，不过如果想要做一个不缓存任何文件的代理服务器，就需要加上null文件系统； <br/>--enable-underscore&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //允许解析的URL中出现下划线，因为默认squid会认为带下划线的URL地址是非法的，并拒绝访问该地址； <br/></div><br/>Tags - <a href="http://www.dzhope.com/tags/squid/" rel="tag">squid</a> , <a href="http://www.dzhope.com/tags/%25E7%25BC%2596%25E8%25AF%2591%25E5%258F%2582%25E6%2595%25B0/" rel="tag">编译参数</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] squid编译参数说明]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>