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;
文章来源于领测软件测试网 https://www.ltesting.net/