网络服务配置与优化指南
1. Squid代理缓存服务器配置
Squid代理缓存服务器在网络层级中可扮演两种角色:兄弟缓存(sibling cache)和父缓存(parent cache)。兄弟缓存只能提供已有的文档,而父缓存可以从其他缓存或源直接获取文档。为避免产生比无网页缓存时更多的网络流量,建议选择多个兄弟缓存和少量父缓存。
1.1 “/etc/rc.d/init.d/squid”脚本文件配置
此脚本用于启动和停止Squid Internet对象缓存,且已修改为在“/cache”而非“/var/spool/squid”中设置交换缓存。
创建脚本文件并添加以下内容:
#!/bin/bash
# squid
# This shell script takes care of starting and stopping
# Squid Internet Object Cache
# chkconfig: - 90 25
# description: Squid - Internet Object Cache. Internet object caching is \
# a way to store requested Internet objects (i.e., data available \
# via the HTTP, FTP, and gopher protocols) on a system closer to the \
# requesting site than to the source. Web browsers can then use the \
# loc
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



