一、安装squidYuminstallsquidsquid-v查看版本以及编译参数二、配置squidVim/etc/squid/squid.conf1、正向代理的基础配置(代理上网+缓存)1.1squid服务器配置(保证该主机能够连接互联网)http_port192.168.1.121:3128#设置squid代理服务器cache_mem64MBcache_dirufs/data/cache..
分类:
其他好文 时间:
2015-09-22 19:03:06
阅读次数:
743
如果是 git clone http:// 或 git clone https:// 的话直接把代理服务器加到环境变量就可以了: $?export?http_proxy="http://username:password@squid.vpsee.com:3128/"
$?export?https_proxy="http://usern...
分类:
系统相关 时间:
2015-09-22 16:51:05
阅读次数:
263
1.安装squidyuminstallsquid2.修改squid配置文件cache_dirufs/var/spool/squid10016256cache_mem128MB....在refresh_pattern下插入代码refresh_pattern\.(jpg|png|gif|js|css|mp3|mp4|exe)144020%2880ignore-reloadvisible_hostnamewyp“cache_dir”这个用来指定本地磁盘上的缓..
分类:
其他好文 时间:
2015-09-19 22:50:01
阅读次数:
271
反向代理配置过程其实和前面的正向代理没有什么太大区别,唯一的区别是配置文件中一个地方需要改动一下。需要把:http_port3128改为:http_port80accelvhostvport然后再增加你要代理的后端真实服务器信息:cache_peer180.97.33.108parent800originservername=acache_peer101.226.1..
分类:
其他好文 时间:
2015-09-19 22:49:11
阅读次数:
305
Squid是比较知名的代理软件,它不仅可以跑在Linux上还可以跑在Windows以及Unix上,它的技术已经非常成熟。目前使用Squid的用户也是十分广泛的。Squid与Linux下其它的代理软件如Apache、Socks、TISFWTK相比,下载安装简单,配置简单灵活,支持缓存和多种协议。Squid之所以用的很..
分类:
其他好文 时间:
2015-09-19 22:49:00
阅读次数:
239
echo "210 local100" >> /etc/iproute2/rt_tables echo "220 local200" >> /etc/iproute2/rt_tables echo "230 local300" >> /etc/iproute2/rt_tables...
分类:
系统相关 时间:
2015-09-16 09:43:10
阅读次数:
268
我们知道相同网段内各网络设备之间是基于mac通信,而跨网络的不同主机之间是基于IP地址通信。随着世界主机数量爆炸式的增长,对于记住数目众多IP和想访问未知对方IP的主机成为一个痛点。通过基于人们熟知的文字访问主机应运而生。DNS(DomainNameSystem,域名系统),因特网上..
分类:
系统相关 时间:
2015-09-16 00:58:34
阅读次数:
295
root@proxy squid]# cat squid.conf## Recommended minimum configuration:#visible_hostname www.jd.com #设置代理服务器名称cache_mgr 888888@163.com #设置缓存管理员邮箱acl .....
分类:
其他好文 时间:
2015-09-15 01:37:50
阅读次数:
226
流行的队列框架大致有:Memcacheq,Fqueue, RabbitMQ, Beanstalkd以及linkedin的kafka。RabbitMQ使用比较广泛,Beanstalkd是后起之秀。Beanstalkd之于RabbitMQ,就好比Nginx之于Apache,Varnish之于Squid。后面在项...
分类:
其他好文 时间:
2015-09-15 00:20:20
阅读次数:
218
[root@localhostroot]#servicesquidrestart
Stoppingsquid:2015/09/1017:09:29|WARNING:Nounitson‘cache_mem536870912‘,assuming536870912.00bytes
2015/09/1017:09:29|WARNINGcache_memislargerthantotaldiskcachespace!
................[OK]
Startingsquid:.配置squid遇..
分类:
系统相关 时间:
2015-09-10 11:15:22
阅读次数:
427