nginx
katefic
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ch04 proxy_cache
4.1 proxy_cache_path proxy_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 · 210 阅读 · 0 评论 -
ch03 流量管理
3.1 A/B testing upstream 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 · 1130 阅读 · 0 评论 -
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 · 207 阅读 · 0 评论 -
ch01
1.2 在RHEL/CentOS上安装 编辑生成/etc/yum.repos.d/nginx.repo文件 [nginx] name=nginx repo baseurl=http://nginx.org/packages/mainline/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1 将OS和OSRELEASE进行替换; 2.启动服务,防火墙放开端口 yum install nginx -y systemctl enable nginx.servi原创 2020-05-10 17:33:32 · 212 阅读 · 0 评论
分享