![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
katefic
这个作者很懒,什么都没留下…
展开
-
keepalived
keepalived启动日志:这是都是BACKUP和priority都相同时的日志,每次选出的master也不固定;用成功的配置时,直接就收敛了11:46:16 c80 Keepalived[22244]: Starting Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f211:46:16 c80 Keepalived[22244]: Opening file '/etc/keepalived/keepalived.conf'.原创 2021-04-10 14:33:07 · 109 阅读 · 0 评论 -
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 · 135 阅读 · 0 评论 -
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 · 1015 阅读 · 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 · 156 阅读 · 0 评论 -
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 · 169 阅读 · 0 评论