在这里让我们一起学习,一起提高!

安装Squid 不指定

jed , 2011-4-28 14:44 , 服务器技术 , 评论(0) , 阅读(6130) , Via 本站原创

[root@localhost]#./configure --prefix=/usr/local/server/squid --enable-async-io=100 --disable-delay-pools --disable-mem-gen-trace --disable-useragent-log --enable-kill-parent-hack --disable-arp-acl --enable-epoll --disable-ident-lookups --enable-snmp --enable-large-cache-files --with-large-files
[root@localhost]#make && make install

或使用如下安装方法:

[root@localhost]#yum install squid

如果是2.6的内核,才能支持epoll的IO模式,旧版本的内核则只能选择poll或其他模式了;另外,记得带上支持大文件的选项,否则在access
log等文件达到2G的时候就会报错。设定 squid 的配置大概如下内容:
Tags:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]