CDN模拟搭建

image.png

image.png

./squid -z //初始化
cache_dir ufs /usr/local/var/cache 100 16 256
http_port 80 accel vhost vport
cache_peer srcip parent 80 0
http_access allow all
refresh_pattern //设置缓存保存期限
squidclient 删除缓存


image.png

ipvsadm -A -t ip:port -s rr

ipvsadm -a -t ip:port -r ip -g


image.png

image.png

image.png

image.png

你可能感兴趣的:(CDN模拟搭建)