摘要: 使用Varnish加速后端Web服务 代理服务器可以将远程的Web服务器页面缓存在本地 远程Web服务器对客户端用户是透明的 利用缓存机制提高网站的响应速度 使用varnishadm命令管理缓存页面 使用varnishstat命令查看Varnish状态 (一)装包配置 [root@proxy ~]# 阅读全文
posted @ 2020-11-12 16:39 zsh~ 阅读(68) 评论(0) 推荐(0)
摘要: 一、开启--with-http_stub_status_module模块可以看到访问状态 [root@proxy ~]# tar -zxvf nginx-1.12.2.tar.gz [root@proxy ~]# cd nginx-1.12.2 [root@proxy nginx-1.12.2]# 阅读全文
posted @ 2020-11-12 16:05 zsh~ 阅读(109) 评论(0) 推荐(0)
摘要: 反向代理分七层代理和四层代理 一、七层代理 [root@proxy ~]# vim /usr/local/nginx/conf/nginx.conf .. .. http { .. .. upstream webserver { #通过ip_hash设置调度规则为:相同客户端访问相同服务器 ip_h 阅读全文
posted @ 2020-11-12 15:35 zsh~ 阅读(181) 评论(0) 推荐(1)