2003/06/21 18:01:09| Unlinkd pipe opened on FD 9
2003/06/21 18:01:09| Swap maxSize 1048576 KB, estimated 80659 objects
2003/06/21 18:01:09| Target number of buckets: 4032
2003/06/21 18:01:09| Using 8192 Store buckets
2003/06/21 18:01:09| Max Mem size: 32768 KB
2003/06/21 18:01:09| Max Swap size: 1048576 KB
2003/06/21 18:01:09| Store logging disabled
2003/06/21 18:01:09| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2003/06/21 18:01:09| Using Least Load store dir selection
2003/06/21 18:01:09| Current Directory is /usr/local/squid/etc
2003/06/21 18:01:09| Loaded Icons.
2003/06/21 18:01:09| Accepting HTTP connections at 0.0.0.0, port 3128, FD 8.
2003/06/21 18:01:09| WCCP Disabled.
2003/06/21 18:01:09| Ready to serve requests.
2003/06/21 18:01:16| Done scanning /usr/local/squid/cache swaplog (0 entries)
2003/06/21 18:01:16| Finished rebuilding storage from disk.
2003/06/21 18:01:16| 0 Entries scanned
2003/06/21 18:01:16| 0 Invalid entries.
2003/06/21 18:01:16| 0 With invalid flags.
2003/06/21 18:01:16| 0 Objects loaded.
2003/06/21 18:01:16| 0 Objects expired.
2003/06/21 18:01:16| 0 Objects cancelled.
2003/06/21 18:01:16| 0 Duplicate URLs purged.
2003/06/21 18:01:16| 0 Swapfile clashes avoided.
2003/06/21 18:01:16| Took 7.3 seconds ( 0.0 objects/sec).
2003/06/21 18:01:16| Beginning Validation Procedure
2003/06/21 18:01:16| Completed Validation Procedure
2003/06/21 18:01:16| Validated 0 Entries
2003/06/21 18:01:16| store_swap_size = 0k
2003/06/21 18:01:17| storeLateRelease: released 0 object否则根据提示检查配制文件 。
为了使squid的透明代理起作用,需要设置端口转发 。方法如下:
编辑/etc/rc.firewall文件,添加下面一句:
ipfw add 00500 fwd 127.0.0.1,3128 tcp from 192.168.0.0/24 to any 80下面建立squid的启动脚本squid.sh:
首先建立/usr/local/etc/rc.d目录:
# mkdir /usr/local/etc
# mkdir /usr/local/etc/rc.d
# cd /usr/local/etc/rc.d
# vi squid.sh文件内容如下:
#!/bin/sh
# if ! PREFIX=$(expr $0 : "(/.*)/etc/rc.d/$(basename $0)$"); then
# echo "$0: Cannot determine the PREFIX" >&2
# exit 1
# fi
case "$1" in
start)
if [ -x /usr/local/squid/sbin/squid -a -f /usr/local/squid/etc/squid.conf ]; then
(cd /usr/local/squid/var/logs; /usr/local/squid/sbin/squid >/dev/null 2>&1 &) ; echo -n " squid"
fi
;;
stop)
/usr/local/squid/sbin/squid -k shutdown 2>&1
# Uncomment this if you"d like the system to (attempt to
# wait for) squid to shut down cleanly
#echo "Sleeping for 45 seconds to allow squid to shutdown.."
#sleep 45
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0
这样每次启动后,squid就会自动运行 。
运行/usr/local/etc/rc.d/squid.sh start 启动squid
【FreeBSD网站平台建设全过程 第二步】运行/usr/local/etc/rc.d/squid.sh stop 停止squid
推荐阅读
- FreeBSD+Resin成功建立支持Jsp平台
- B 系统 FreeBSD 升级
- FreeBSD网站平台建设全过程 前言
- 1 FreeBSD 核心
- Domino系统从UNIX平台到windows平台的迁移及备份
- Solaris 10:网络计算的开源核心平台
- 湖北工业大学怎么查成绩 教学管理平台密码忘了
- 微信公众平台身份证、手机、企业信息登次数说明
- ZFS时代FreeBSD系统的数据冗余策略
- 安全教育平台作业怎么查询完成情况
