squid13+solaris10 反向代理配置全攻略 軟件測試工具
關鍵字:squid
1,准備工作:Solaris10,squid-2.6.STABLE13
2,開始安裝和配置:
1) 查看和修改最大連接數:
#ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8480
cpu time (seconds, -t) unlimited
max user processes (-u) 8485
virtual memory (kbytes, -v) unlimited
修改:vi /usr/include/sys/types.h
#define FD_SETSIZE 10240
#ifndef _SYS_TYPES_H
#define _SYS_TYPES_H
2)將squid軟件解壓和安裝到制定目錄:
./configure --prefix=/usr/local/squid --disable-internal-dns --enable-useragent-log --enable-referer-log(可以看到連接數已經修改為10240)
make;make install;