建立2个squid服务,名叫map和route,可以用以下命令分别启动
service map start
service route start
也可以加到系统启动里
chkconfig map on
chkconfig route on
编辑好2个squid.conf文件, `/etc/squid/squid.conf` (map) 和 `/etc/squid/squid-route.conf` (route)。2套服务的pid_filename,cache_dir,coredump_dir要不同。
#cp /etc/init.d/squid /etc/init.d/route
#mv /etc/init.d/squid /etc/init.d/map
SQUID_CONF="/etc/squid/squid.conf" ==> SQUID_CONF="/etc/squid/squid-route.conf"
/var/log/squid/squid.out ==> /var/log/squid/squid-route.out
/var/run/squid.pid ==> /var/run/squid-route.pid
http://linux.vbird.org/linux_server/0420squid.php#server_pkg