windows中squid更改默认安装路径配置说明
2016-05-07 12:25
295 查看
官网下载的windows版本,默认是要放c:\squid中,如果需要改默认路径的话,需要etc\squid.conf文件中至少增加如下配置
# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs G:/apps/squid2/var/cache/squid 100 16 256
# Leave coredumps in the first cache dir
coredump_dir G:/apps/squid2/var/cache/squid
mime_table G:/apps/squid2/etc/mime.conf
logformat squid %tl %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
logfile_daemon G:/apps/squid2/libexec/logfile-daemon.exe
diskd_program G:/apps/squid2/libexec/diskd-daemon.exe
unlinkd_program G:/apps/squid2/libexec/unlinkd.exe
#pinger_program G:/apps/squid2/libexec/pinger.exe
#cache_dns_program G:/apps/squid2/libexec/dnsserver.exe
icon_directory G:/apps/squid2/share/icons
error_directory G:/apps/squid2/share/errors/English
cache_log G:/apps/squid2/var/logs/cache.log
cache_store_log G:/apps/squid2/var/logs/store.log
access_log G:/apps/squid2/var/logs/access.log squid
首次运行的时候需要手工创建cache目录
mkdir G:\apps\squid2\var\cache\squid
执行
squid.exe -f G:/apps/squid2/etc/squid.conf -z
然后执行squid.exe -f G:/apps/squid2/etc/squid.conf -i 安装windows服务,安装的时候需要使用管理员命令行窗口,否则无法安装
然后就可以使用net start squid来启动了
# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs G:/apps/squid2/var/cache/squid 100 16 256
# Leave coredumps in the first cache dir
coredump_dir G:/apps/squid2/var/cache/squid
mime_table G:/apps/squid2/etc/mime.conf
logformat squid %tl %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
logfile_daemon G:/apps/squid2/libexec/logfile-daemon.exe
diskd_program G:/apps/squid2/libexec/diskd-daemon.exe
unlinkd_program G:/apps/squid2/libexec/unlinkd.exe
#pinger_program G:/apps/squid2/libexec/pinger.exe
#cache_dns_program G:/apps/squid2/libexec/dnsserver.exe
icon_directory G:/apps/squid2/share/icons
error_directory G:/apps/squid2/share/errors/English
cache_log G:/apps/squid2/var/logs/cache.log
cache_store_log G:/apps/squid2/var/logs/store.log
access_log G:/apps/squid2/var/logs/access.log squid
首次运行的时候需要手工创建cache目录
mkdir G:\apps\squid2\var\cache\squid
执行
squid.exe -f G:/apps/squid2/etc/squid.conf -z
然后执行squid.exe -f G:/apps/squid2/etc/squid.conf -i 安装windows服务,安装的时候需要使用管理员命令行窗口,否则无法安装
然后就可以使用net start squid来启动了
相关文章推荐
- Nginx 反向代理、负载均衡、页面缓存、URL重写及读写分离详解
- Nginx反向代理服務器解析
- squid如何做正向代理,通过重定向器匹配正则重写url
- squid实现反向代理!!!
- 正向代理与反向代理的区别(清晰明了)
- 【Nginx-反向代理服务器】实践篇(三)之Tomcat+Nginx搭建集群
- 反向代理与web容器对比
- 利用nginx的反向代理和tomcat整合
- nginx反向代理
- nginux做反向代理配置文件
- Nginx反向代理
- nginx系列3——nginx反向代理、动静分离、负载均衡
- Nginx反向代理
- 简单实现nginx+tomcat的反向代理与动静分离
- 【翻译】使用nginx作为反向代理服务器,uWSGI作为应用服务器来部署flask应用
- openresty+lua在反向代理服务中的玩法 | WooYun知识库
- 正向代理与反向代理
- nginx反向代理
- nginx反向代理cas-server之2:生成证书,centOS下使用openssl生成CA证书(根证书、server证书、client证书)
- nginx反向代理服务,因配置文件错误导致访问资源时出现404