- 博客(5)
- 收藏
- 关注
原创 ch04 proxy_cache
4.1 proxy_cache_pathproxy_cache_path /mnt/hgfs/yumdownloader/tmp levels=1:2 keys_zone=my_cache:100m max_size=500m inactive=3h;server { location / { proxy_cache my_cache; add_header X-Cache $upstream_cache_status; proxy_cache_valid 200 10s; //没有这行时
2020-05-20 16:11:21
227
原创 ch02 负载均衡
这里写自定义目录标题2.1 http lb2.2 tcp lb2.3 udp lb2.4 Load-Balancing Methods2.9 Passive Health Checks2.10 Active Health Checks (Plus)2.11 Slow Start(Plus)2.1 http lb使用的是http module,在nginx.conf中http block内使用upstream block:upstream backend { server IP:port weigth
2020-05-13 19:24:12
223
原创 ch03 流量管理
3.1 A/B testingupstream httplb66 { #ip_hash; server 192.168.11.66:80;}upstream httplb69 { server 192.168.11.69:80;}split_clients "${request_method}AAA" $nodes { 20% httplb66; * httplb69;}server { listen 80; server_name
2020-05-12 18:03:34
1156
原创 ch01
1.2 在RHEL/CentOS上安装编辑生成/etc/yum.repos.d/nginx.repo文件[nginx]name=nginx repobaseurl=http://nginx.org/packages/mainline/OS/OSRELEASE/$basearch/gpgcheck=0enabled=1将OS和OSRELEASE进行替换;2.启动服务,防火墙放开端口 yum install nginx -y systemctl enable nginx.servi
2020-05-10 17:33:32
223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅