0
编译完了,不整理一会就忘记了,其实几个关键地方提一下,这里用到的版本是FreeBSD 6.2 + Squid 2.6
另外Freebsd真的实在安全性能太夸张了,决定以后用这个给客户了!
对于Squid.conf的配置文件:
http_port 192.168.10.8:8080 transparent vhost vport
cache_peer 127.0.0.1 parent 80 0 no-query originserver
其他地方基本没有做什么修改
另外出现的一个很郁闷的问题就是
2008/06/18 17:35:46| /usr/local/squid/cache/00: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
Squid Cache (Version 2.6.STABLE3): Terminated abnormally.
CPU Usage: 0.089 seconds = 0.000 user + 0.089 sys
真是愚昧,在/usr/local/etc/rc.d/squid -z 总是调用失败,找baidu,google都找不到原因。后来静下来想了一下才知道了,原来这里的squid仅仅是一个shell脚本
而应该调用/usr/local/sbin/squid -z
晕死。
当然还有一个重要的地方就是 echo squid_enable=\"YES\" >> /etc/rc.conf
否则是不好时的!
另外Freebsd真的实在安全性能太夸张了,决定以后用这个给客户了!
对于Squid.conf的配置文件:
http_port 192.168.10.8:8080 transparent vhost vport
cache_peer 127.0.0.1 parent 80 0 no-query originserver
其他地方基本没有做什么修改
另外出现的一个很郁闷的问题就是
引用
2008/06/18 17:35:46| /usr/local/squid/cache/00: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
Squid Cache (Version 2.6.STABLE3): Terminated abnormally.
CPU Usage: 0.089 seconds = 0.000 user + 0.089 sys
真是愚昧,在/usr/local/etc/rc.d/squid -z 总是调用失败,找baidu,google都找不到原因。后来静下来想了一下才知道了,原来这里的squid仅仅是一个shell脚本
而应该调用/usr/local/sbin/squid -z
晕死。
当然还有一个重要的地方就是 echo squid_enable=\"YES\" >> /etc/rc.conf
否则是不好时的!
FreeBSD-Lighttpd-Success
FreeBSD下面使用lighttpd和Squid的性能日志报告


2008/06/18
21:23
5173



