From 3d934709aa4b9bf33d057a0ff1eed5285479f484 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Thu, 30 Sep 2021 15:34:03 +0000 Subject: [PATCH 01/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2012=20=E6=97=A5?= =?UTF-8?q?=E5=B8=B8=E6=8E=92=E9=94=99=E5=8F=8Acase=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8b8d08f244db283b87f776ec37629e695c26720d Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 03:58:42 +0000 Subject: [PATCH 02/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20lab=20for=20debug=20?= =?UTF-8?q?log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 485fd551ec4c7d18074c133bb1eca40e270d1511 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 03:59:01 +0000 Subject: [PATCH 03/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20lab=20for=20HA?= =?UTF-8?q?=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/lab for HA\345\210\207\346\215\242/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8f1cebe3f7faee1ecbd9bb1aefcfb509e58ada62 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:08:02 +0000 Subject: [PATCH 04/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20plus1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for HA\345\210\207\346\215\242/plus1/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 06cf04675b42bbee0ab275a3bfebb127471eab97 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:13:15 +0000 Subject: [PATCH 05/25] =?UTF-8?q?plus1=E7=9A=84/etc/keepalived.conf?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plus1/keepalived.conf" | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" new file mode 100644 index 0000000..2f0a777 --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" @@ -0,0 +1,37 @@ +global_defs { + vrrp_version 3 +} + +vrrp_script chk_manual_failover { + script "/usr/libexec/keepalived/nginx-ha-manual-failover" + interval 10 + weight 50 +} + +vrrp_script chk_nginx_service { + script "/usr/libexec/keepalived/nginx-ha-check" + interval 3 + weight 50 +} + +vrrp_instance VI_1 { + interface ens33 + priority 101 + virtual_router_id 51 + advert_int 1 + accept + garp_master_refresh 5 + garp_master_refresh_repeat 1 + unicast_src_ip 10.1.20.241/24 + unicast_peer { + 10.1.20.242 + } + virtual_ipaddress { + 10.1.20.240 + } + track_script { + chk_nginx_service + chk_manual_failover + } + notify "/usr/libexec/keepalived/nginx-ha-notify" +} -- Gitee From 802d8168e8ee793611a79bb67b79dbd80bfec6fb Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:13:48 +0000 Subject: [PATCH 06/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20plus2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for HA\345\210\207\346\215\242/plus2/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 02674d2c891ae56c063ef5966a4f5b2fad703891 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:16:05 +0000 Subject: [PATCH 07/25] =?UTF-8?q?plus2=E7=9A=84/etc/keepalived/keepalived.?= =?UTF-8?q?conf=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plus2/keepalived.conf" | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" new file mode 100644 index 0000000..727ff1d --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" @@ -0,0 +1,37 @@ +global_defs { + vrrp_version 3 +} + +vrrp_script chk_manual_failover { + script "/usr/libexec/keepalived/nginx-ha-manual-failover" + interval 10 + weight 50 +} + +vrrp_script chk_nginx_service { + script "/usr/libexec/keepalived/nginx-ha-check" + interval 3 + weight 50 +} + +vrrp_instance VI_1 { + interface ens33 + priority 100 + virtual_router_id 51 + advert_int 1 + accept + garp_master_refresh 5 + garp_master_refresh_repeat 1 + unicast_src_ip 10.1.20.242/24 + unicast_peer { + 10.1.20.241 + } + virtual_ipaddress { + 10.1.20.240 + } + track_script { + chk_nginx_service + chk_manual_failover + } + notify "/usr/libexec/keepalived/nginx-ha-notify" +} -- Gitee From ee108c39630872aadc389f6b3f1befd78ae77e1f Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:18:30 +0000 Subject: [PATCH 08/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20lab=20for=20HA?= =?UTF-8?q?=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for HA\345\210\207\346\215\242/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b610c2f58a9fd49c0baa5acaf3d56ae6df6c2d43 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:19:12 +0000 Subject: [PATCH 09/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20plus1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for HA\345\210\207\346\215\242/plus1/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 80fd9c261164be43788a41debaa910ce853fa672 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:19:24 +0000 Subject: [PATCH 10/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20plus2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for HA\345\210\207\346\215\242/plus2/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f3afd3f1653e5b406b796507442d3132a80a6f05 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:20:47 +0000 Subject: [PATCH 11/25] =?UTF-8?q?plus2=E7=9A=84/etc/keepalived/keepalived.?= =?UTF-8?q?conf=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plus2/keepalived.conf" | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" new file mode 100644 index 0000000..727ff1d --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" @@ -0,0 +1,37 @@ +global_defs { + vrrp_version 3 +} + +vrrp_script chk_manual_failover { + script "/usr/libexec/keepalived/nginx-ha-manual-failover" + interval 10 + weight 50 +} + +vrrp_script chk_nginx_service { + script "/usr/libexec/keepalived/nginx-ha-check" + interval 3 + weight 50 +} + +vrrp_instance VI_1 { + interface ens33 + priority 100 + virtual_router_id 51 + advert_int 1 + accept + garp_master_refresh 5 + garp_master_refresh_repeat 1 + unicast_src_ip 10.1.20.242/24 + unicast_peer { + 10.1.20.241 + } + virtual_ipaddress { + 10.1.20.240 + } + track_script { + chk_nginx_service + chk_manual_failover + } + notify "/usr/libexec/keepalived/nginx-ha-notify" +} -- Gitee From 9b380dd5d4946245d9218f6e410857eaaedd194b Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:22:06 +0000 Subject: [PATCH 12/25] =?UTF-8?q?plus1=E7=9A=84/etc/keepalived/keepalived.?= =?UTF-8?q?conf=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plus1/keepalived.conf" | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" new file mode 100644 index 0000000..2f0a777 --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" @@ -0,0 +1,37 @@ +global_defs { + vrrp_version 3 +} + +vrrp_script chk_manual_failover { + script "/usr/libexec/keepalived/nginx-ha-manual-failover" + interval 10 + weight 50 +} + +vrrp_script chk_nginx_service { + script "/usr/libexec/keepalived/nginx-ha-check" + interval 3 + weight 50 +} + +vrrp_instance VI_1 { + interface ens33 + priority 101 + virtual_router_id 51 + advert_int 1 + accept + garp_master_refresh 5 + garp_master_refresh_repeat 1 + unicast_src_ip 10.1.20.241/24 + unicast_peer { + 10.1.20.242 + } + virtual_ipaddress { + 10.1.20.240 + } + track_script { + chk_nginx_service + chk_manual_failover + } + notify "/usr/libexec/keepalived/nginx-ha-notify" +} -- Gitee From 6415b323a77ab02add966c76a29c35c98128f2c7 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:22:20 +0000 Subject: [PATCH 13/25] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2012?= =?UTF-8?q?=20=E6=97=A5=E5=B8=B8=E6=8E=92=E9=94=99=E5=8F=8Acase=E6=B5=81?= =?UTF-8?q?=E7=A8=8B/lab=20for=20debug=20log/lab=20for=20HA=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for HA\345\210\207\346\215\242/.keep" | 0 .../plus1/.keep" | 0 .../plus1/keepalived.conf" | 37 ------------------- .../plus2/.keep" | 0 .../plus2/keepalived.conf" | 37 ------------------- 5 files changed, 74 deletions(-) delete mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/.keep" delete mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/.keep" delete mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" delete mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/.keep" delete mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" deleted file mode 100644 index 2f0a777..0000000 --- "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" +++ /dev/null @@ -1,37 +0,0 @@ -global_defs { - vrrp_version 3 -} - -vrrp_script chk_manual_failover { - script "/usr/libexec/keepalived/nginx-ha-manual-failover" - interval 10 - weight 50 -} - -vrrp_script chk_nginx_service { - script "/usr/libexec/keepalived/nginx-ha-check" - interval 3 - weight 50 -} - -vrrp_instance VI_1 { - interface ens33 - priority 101 - virtual_router_id 51 - advert_int 1 - accept - garp_master_refresh 5 - garp_master_refresh_repeat 1 - unicast_src_ip 10.1.20.241/24 - unicast_peer { - 10.1.20.242 - } - virtual_ipaddress { - 10.1.20.240 - } - track_script { - chk_nginx_service - chk_manual_failover - } - notify "/usr/libexec/keepalived/nginx-ha-notify" -} diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" deleted file mode 100644 index 727ff1d..0000000 --- "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" +++ /dev/null @@ -1,37 +0,0 @@ -global_defs { - vrrp_version 3 -} - -vrrp_script chk_manual_failover { - script "/usr/libexec/keepalived/nginx-ha-manual-failover" - interval 10 - weight 50 -} - -vrrp_script chk_nginx_service { - script "/usr/libexec/keepalived/nginx-ha-check" - interval 3 - weight 50 -} - -vrrp_instance VI_1 { - interface ens33 - priority 100 - virtual_router_id 51 - advert_int 1 - accept - garp_master_refresh 5 - garp_master_refresh_repeat 1 - unicast_src_ip 10.1.20.242/24 - unicast_peer { - 10.1.20.241 - } - virtual_ipaddress { - 10.1.20.240 - } - track_script { - chk_nginx_service - chk_manual_failover - } - notify "/usr/libexec/keepalived/nginx-ha-notify" -} -- Gitee From 00f5f5e575bf9efa9005877a9a46c2885d484147 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 04:48:09 +0000 Subject: [PATCH 14/25] =?UTF-8?q?add=2012=20=E6=97=A5=E5=B8=B8=E6=8E=92?= =?UTF-8?q?=E9=94=99=E5=8F=8Acase=E6=B5=81=E7=A8=8B/lab=20for=20HA?= =?UTF-8?q?=E5=88=87=E6=8D=A2/README.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md" | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" new file mode 100644 index 0000000..75e2d86 --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" @@ -0,0 +1,102 @@ +###安装NGINX Plus +请参考NGINX Plus安装手册安装两台NGINX Plus(plus1和plus2) [https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-plus/](https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-plus/)。
+plus1的ens33 ip为10.1.20.241,plus2的ens33 ip为10.1.20.242。
+ +###配置NGINX Plus HA + +在两台NGINX Plus上分别运行nginx-ha-setup命令:
+... +[root@plus1 /root]$nginx-ha-setup +Thank you for using NGINX Plus! + +This script is intended for use with RHEL/CentOS/SLES/Debian/Ubuntu-based systems. +It will configure highly available NGINX Plus environment in Active/Passive pair. + +NOTE: you will need the following in order to continue: + - 2 running systems (nodes) with static IP addresses + - one free IP address to use as Cluster IP endpoint + +It is strongly recommended to run this script simultaneously on both nodes, +e.g. use two terminal windows and switch between them step by step. + +It is recommended to run this script under screen(1) in order to allow +installation process to continue in case of unexpected session disconnect. + +Press to continue... + +Step 1: configuring internal management IP addresses. + +In order to communicate with each other, both nodes must have at least one IP address. + +The guessed primary IP of this node is: 10.1.20.241/24 + +Do you want to use this address for internal cluster communication? (y/n) +IP address of this host is set to: 10.1.20.241/24 +Primary network interface: ens33 + +Now please enter IP address of a second node: 10.1.20.242 +You entered: 10.1.20.242 +Is it correct? (y/n) +IP address of the second node is set to: 10.1.20.242 + +Press to continue... + +Step 2: creating keepalived configuration + +Now you have to choose cluster IP address. +This address will be used as en entry point to all your cluster resources. +The chosen address must not be one already associated with a physical node. + +Enter cluster IP address: 10.1.20.240 +You entered: 10.1.20.240 +Is it correct? (y/n) + +You must choose which node should have the MASTER role in this cluster. + +Please choose what the current node role is: +1) MASTER +2) BACKUP + +(on the second node you should choose the opposite variant) + +Press 1 or 2. +This is the MASTER node. + +Step 3: starting keepalived + +keepalived is already running. + +Press to continue... + +Step 4: configuring cluster + +Enabling keepalived and nginx at boot time... +注意:正在将请求转发到“systemctl enable nginx.service”。 +注意:正在将请求转发到“systemctl enable keepalived.service”。 +Initial configuration complete! + +keepalived logs are written to syslog and located here: +/var/log/messages + +Further configuration may be required according to your needs +and environment. +Main configuration file for keepalived can be found at: + /etc/keepalived/keepalived.conf + +To control keepalived, use 'service keepalived' command: + service keepalived status + +keepalived documentation can be found at: +http://www.keepalived.org/ + +NGINX-HA-keepalived documentation can be found at: +/usr/share/doc/nginx-ha-keepalived/README + +Thank you for using NGINX Plus! + +[root@plus1 /root]$ +... + + + + -- Gitee From f734a8ce158eee38ba47a3ab6090ad7d055c3610 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 05:16:53 +0000 Subject: [PATCH 15/25] =?UTF-8?q?update=2012=20=E6=97=A5=E5=B8=B8=E6=8E=92?= =?UTF-8?q?=E9=94=99=E5=8F=8Acase=E6=B5=81=E7=A8=8B/lab=20for=20HA?= =?UTF-8?q?=E5=88=87=E6=8D=A2/README.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md" | 155 +++++++++++++++++- 1 file changed, 151 insertions(+), 4 deletions(-) diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" index 75e2d86..151c3be 100644 --- "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" @@ -1,11 +1,15 @@ -###安装NGINX Plus +### 安装NGINX Plus + + 请参考NGINX Plus安装手册安装两台NGINX Plus(plus1和plus2) [https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-plus/](https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-plus/)。
plus1的ens33 ip为10.1.20.241,plus2的ens33 ip为10.1.20.242。
-###配置NGINX Plus HA +### 配置NGINX Plus HA 在两台NGINX Plus上分别运行nginx-ha-setup命令:
-... + + **plus1:** +``` [root@plus1 /root]$nginx-ha-setup Thank you for using NGINX Plus! @@ -95,8 +99,151 @@ NGINX-HA-keepalived documentation can be found at: Thank you for using NGINX Plus! [root@plus1 /root]$ -... +``` + **plus2:** +``` +[root@plus2 /etc/keepalived]$nginx-ha-setup +Thank you for using NGINX Plus! +This script is intended for use with RHEL/CentOS/SLES/Debian/Ubuntu-based systems. +It will configure highly available NGINX Plus environment in Active/Passive pair. +NOTE: you will need the following in order to continue: + - 2 running systems (nodes) with static IP addresses + - one free IP address to use as Cluster IP endpoint + +It is strongly recommended to run this script simultaneously on both nodes, +e.g. use two terminal windows and switch between them step by step. + +It is recommended to run this script under screen(1) in order to allow +installation process to continue in case of unexpected session disconnect. + +Press to continue... + +Step 1: configuring internal management IP addresses. + +In order to communicate with each other, both nodes must have at least one IP address. + +The guessed primary IP of this node is: 10.1.20.242/24 + +Do you want to use this address for internal cluster communication? (y/n) +IP address of this host is set to: 10.1.20.242/24 +Primary network interface: ens33 + +Now please enter IP address of a second node: 10.1.20.241 +You entered: 10.1.20.241 +Is it correct? (y/n) +IP address of the second node is set to: 10.1.20.241 + +Press to continue... + +Step 2: creating keepalived configuration + +Now you have to choose cluster IP address. +This address will be used as en entry point to all your cluster resources. +The chosen address must not be one already associated with a physical node. + +Enter cluster IP address: 10.1.20.240 +You entered: 10.1.20.240 +Is it correct? (y/n) + +You must choose which node should have the MASTER role in this cluster. + +Please choose what the current node role is: +1) MASTER +2) BACKUP + +(on the second node you should choose the opposite variant) + +Press 1 or 2. +This is the BACKUP node. + +Step 3: starting keepalived + +keepalived is already running. + +Press to continue... + +Step 4: configuring cluster + +Enabling keepalived and nginx at boot time... +注意:正在将请求转发到“systemctl enable nginx.service”。 +注意:正在将请求转发到“systemctl enable keepalived.service”。 +Initial configuration complete! + +keepalived logs are written to syslog and located here: +/var/log/messages + +Further configuration may be required according to your needs +and environment. +Main configuration file for keepalived can be found at: + /etc/keepalived/keepalived.conf + +To control keepalived, use 'service keepalived' command: + service keepalived status + +keepalived documentation can be found at: +http://www.keepalived.org/ + +NGINX-HA-keepalived documentation can be found at: +/usr/share/doc/nginx-ha-keepalived/README + +Thank you for using NGINX Plus! +[root@plus2 /etc/keepalived]$ +``` +### 验证HA主备: + +``` +[root@plus1 /root]$ip add show ens33 +2: ens33: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 00:0c:29:51:b4:62 brd ff:ff:ff:ff:ff:ff + inet 10.1.20.241/24 brd 10.1.20.255 scope global noprefixroute ens33 + valid_lft forever preferred_lft forever + inet 10.1.20.240/32 scope global ens33 + valid_lft forever preferred_lft forever + inet6 fe80::20c:29ff:fe51:b462/64 scope link + valid_lft forever preferred_lft forever +``` + +``` +[root@plus2 /etc/keepalived]$ip add show ens33 +2: ens33: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 00:0c:29:dc:fd:f4 brd ff:ff:ff:ff:ff:ff + inet 10.1.20.242/24 brd 10.1.20.255 scope global noprefixroute ens33 + valid_lft forever preferred_lft forever + inet6 fe80::20c:29ff:fedc:fdf4/64 scope link + valid_lft forever preferred_lft forever +[root@plus2 /etc/keepalived]$ +``` + + +``` +[root@plus1 /root]$tcpdump -i ens33 vrrp -n +tcpdump: verbose output suppressed, use -v or -vv for full protocol decode +listening on ens33, link-type EN10MB (Ethernet), capture size 262144 bytes +13:07:10.922791 IP 10.1.20.241 > 10.1.20.242: VRRPv3, Advertisement, vrid 51, prio 201, intvl 100cs, length 12 +13:07:11.924698 IP 10.1.20.241 > 10.1.20.242: VRRPv3, Advertisement, vrid 51, prio 201, intvl 100cs, length 12 +13:07:12.925605 IP 10.1.20.241 > 10.1.20.242: VRRPv3, Advertisement, vrid 51, prio 201, intvl 100cs, length 12 +``` + + +### plus1切换到plus2: + **在plus1:** + +``` +[root@plus1 /root]$touch /var/run/keepalived-manual-failover +``` + **验证:** + +``` +[root@plus1 /root]$tcpdump -i ens33 vrrp -n +tcpdump: verbose output suppressed, use -v or -vv for full protocol decode +listening on ens33, link-type EN10MB (Ethernet), capture size 262144 bytes +13:13:18.584760 IP 10.1.20.242 > 10.1.20.241: VRRPv3, Advertisement, vrid 51, prio 200, intvl 100cs, length 12 +13:13:19.586413 IP 10.1.20.242 > 10.1.20.241: VRRPv3, Advertisement, vrid 51, prio 200, intvl 100cs, length 12 +``` +### 再从plus2切换到plus1 +可以在plus2上 touch /var/run/keepalived-manual-failover 文件, +或是在plus1上删除/var/run/keepalived-manual-failover 文件。 \ No newline at end of file -- Gitee From 13a25571ad004d1fe0563e539e391d7f9fc6da13 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 09:52:20 +0000 Subject: [PATCH 16/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20nginxoss1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/nginxoss1/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7dbf51fea83d5a40e972b445ae01cf348640a298 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 09:54:29 +0000 Subject: [PATCH 17/25] =?UTF-8?q?nginxoss2=20nginx.conf=E3=80=81app.conf?= =?UTF-8?q?=E3=80=81=E5=92=8Cdemo-index.html=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/nginxoss1/app.conf" | 21 ++++ .../nginxoss1/demo-index.html" | 103 ++++++++++++++++++ .../lab for debug log/nginxoss1/nginx.conf" | 21 ++++ 3 files changed, 145 insertions(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" new file mode 100644 index 0000000..8e0d57e --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" @@ -0,0 +1,21 @@ +server { + listen 80 default_server; + server_name app_server; + + root /usr/local/nginx/html; + error_log /var/log/nginx/app-server-error.log notice; + index demo-index.html index.html; + expires -1; + + sub_filter_once off; + sub_filter 'server_hostname' '$hostname'; + sub_filter 'server_address' '$server_addr:$server_port'; + sub_filter 'server_url' '$request_uri'; + sub_filter 'remote_addr' '$remote_addr:$remote_port'; + sub_filter 'server_date' '$time_local'; + sub_filter 'client_browser' '$http_user_agent'; + sub_filter 'request_id' '$request_id'; + sub_filter 'nginx_version' '$nginx_version'; + sub_filter 'document_root' '$document_root'; + sub_filter 'proxied_for_ip' '$http_x_forwarded_for'; +} diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" new file mode 100644 index 0000000..588b08e --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" @@ -0,0 +1,103 @@ + + + + Hello World - App 2 + + + + + + + + NGINX Logo +
+

Server name: server_hostname

+

Server address: server_address

+

User Agent: client_browser

+

URI: server_url

+

Doc Root: document_root

+

Date: server_date

+

NGINX Frontend Load Balancer IP: remote_addr

+

Client IP: proxied_for_ip

+

NGINX Version: nginx_version

+
+
+ Auto Refresh +
+ + + diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" new file mode 100644 index 0000000..28b5aa4 --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" @@ -0,0 +1,21 @@ + +#user nobody; +worker_processes 1; + + +pid /var/run/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + include mime.types; + default_type application/octet-stream; + include /usr/local/nginx/conf/conf.d/*.conf; + + sendfile on; + keepalive_timeout 65; +} -- Gitee From a650167ed648ec874c225264a56949abf9210515 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 09:54:46 +0000 Subject: [PATCH 18/25] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=2012=20?= =?UTF-8?q?=E6=97=A5=E5=B8=B8=E6=8E=92=E9=94=99=E5=8F=8Acase=E6=B5=81?= =?UTF-8?q?=E7=A8=8B/lab=20for=20debug=20log/nginxoss1=20=E4=B8=BA=2012=20?= =?UTF-8?q?=E6=97=A5=E5=B8=B8=E6=8E=92=E9=94=99=E5=8F=8Acase=E6=B5=81?= =?UTF-8?q?=E7=A8=8B/lab=20for=20debug=20log/nginxoss2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/nginxoss2/.keep" | 0 .../lab for debug log/nginxoss2/app.conf" | 0 .../lab for debug log/nginxoss2/demo-index.html" | 0 .../lab for debug log/nginxoss2/nginx.conf" | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/.keep" (100%) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/app.conf" (100%) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/demo-index.html" (100%) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/nginx.conf" (100%) diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/.keep" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/app.conf" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/app.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/demo-index.html" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/demo-index.html" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/nginx.conf" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss2/nginx.conf" -- Gitee From a074e5d8144932599936612f9990a11a5f8593ca Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 09:56:50 +0000 Subject: [PATCH 19/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20nginxoss1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/nginxoss1/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 418cad9be6fb4a5459cda3920fcc2eef21953fbc Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 10:00:01 +0000 Subject: [PATCH 20/25] =?UTF-8?q?nginxoss1=20nginx.conf=E3=80=81app.conf?= =?UTF-8?q?=E3=80=81demo-index.html=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/nginxoss1/app.conf" | 21 ++++ .../nginxoss1/demo-index.html" | 103 ++++++++++++++++++ .../lab for debug log/nginxoss1/nginx.conf" | 30 +++++ 3 files changed, 154 insertions(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" new file mode 100644 index 0000000..58ba8b7 --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/app.conf" @@ -0,0 +1,21 @@ +server { + listen 80 default_server; + server_name app_server; + + root /usr/share/nginx/html; + error_log /var/log/nginx/app-server-error.log notice; + index demo-index.html index.html; + expires -1; + + sub_filter_once off; + sub_filter 'server_hostname' '$hostname'; + sub_filter 'server_address' '$server_addr:$server_port'; + sub_filter 'server_url' '$request_uri'; + sub_filter 'remote_addr' '$remote_addr:$remote_port'; + sub_filter 'server_date' '$time_local'; + sub_filter 'client_browser' '$http_user_agent'; + sub_filter 'request_id' '$request_id'; + sub_filter 'nginx_version' '$nginx_version'; + sub_filter 'document_root' '$document_root'; + sub_filter 'proxied_for_ip' '$http_x_forwarded_for'; +} diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" new file mode 100644 index 0000000..6710b9e --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/demo-index.html" @@ -0,0 +1,103 @@ + + + + Hello World - App 1 + + + + + + + + NGINX Logo +
+

Server name: server_hostname

+

Server address: server_address

+

User Agent: client_browser

+

URI: server_url

+

Doc Root: document_root

+

Date: server_date

+

NGINX Frontend Load Balancer IP: remote_addr

+

Client IP: proxied_for_ip

+

NGINX Version: nginx_version

+
+
+ Auto Refresh +
+ + + diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" new file mode 100644 index 0000000..4ae5010 --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/nginxoss1/nginx.conf" @@ -0,0 +1,30 @@ + +user nginx; +worker_processes auto; +error_log /var/log/nginx/error.log; +# pid /run/nginx.pid; + +include /usr/share/nginx/modules/*.conf; + +events { + worker_connections 1024; +} + +http { + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + tcp_nopush on; + tcp_nodelay on; + keepalive_timeout 65; + types_hash_max_size 4096; + + include /etc/nginx/mime.types; + default_type application/octet-stream; + + include /etc/nginx/conf.d/*.conf; +} -- Gitee From f4bc9d2c840a5709469fe0717d6b4d5e62407c8b Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 10:00:28 +0000 Subject: [PATCH 21/25] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20plus1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/plus1/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 664242624acf87fe85e2c132091abe02226b7907 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 10:02:52 +0000 Subject: [PATCH 22/25] =?UTF-8?q?plus1=E7=9A=84nginx.conf=E5=92=8Clb.conf?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/plus1/lb.conf" | 49 +++++++++++++++++++ .../lab for debug log/plus1/nginx.conf" | 34 +++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/lb.conf" create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/nginx.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/lb.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/lb.conf" new file mode 100644 index 0000000..6cfbfab --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/lb.conf" @@ -0,0 +1,49 @@ +# in the 'http' context +upstream app1 { + server 192.168.200.15; + # 'server' directives for additional App 1 servers, if using + zone app1 64k; +} + +upstream app2 { + server 192.168.200.16; + # 'server' directives for additional App 2 servers, if using + zone app2 64k; +} + +server { + listen 80; + status_zone backend; + root /usr/share/nginx/html; + + location / { + # directives for serving the site's HTML landing page + } + + location /application1 { + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_pass http://app1/; + error_log /var/log/nginx/application1.log debug; + } + + location /application2 { + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_pass http://app2/; + error_log /var/log/nginx/application2.log debug; + } + + location /api { + api write=on; + # directives to control access, such as 'allow' and 'deny' + } + + location = /dashboard.html { + root /usr/share/nginx/html; + } + + location = /status.html { # redirect requests that are made to pre-R14 dashboard + return 301 /dashboard.html; + } +} diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/nginx.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/nginx.conf" new file mode 100644 index 0000000..4ad6dc3 --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/plus1/nginx.conf" @@ -0,0 +1,34 @@ + +user nginx; +worker_processes auto; + +error_log /var/log/nginx/error.log notice; +pid /var/run/nginx.pid; + + +events { + worker_connections 65535; +} + + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr -$proxy_protocol_addr $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + include /etc/nginx/conf.d/*.conf; + + +} -- Gitee From ff9e12ce9e47cadaa400f1d0dff8b89ca4a4d251 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 10:09:34 +0000 Subject: [PATCH 23/25] =?UTF-8?q?add=2012=20=E6=97=A5=E5=B8=B8=E6=8E=92?= =?UTF-8?q?=E9=94=99=E5=8F=8Acase=E6=B5=81=E7=A8=8B/lab=20for=20debug=20lo?= =?UTF-8?q?g/README.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/README.md" | 1 + 1 file changed, 1 insertion(+) create mode 100644 "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/README.md" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/README.md" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/README.md" new file mode 100644 index 0000000..f6907d9 --- /dev/null +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/README.md" @@ -0,0 +1 @@ +### test \ No newline at end of file -- Gitee From 85033f685fa74a884d6f153e5824a3a4d0fc72c3 Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 10:34:51 +0000 Subject: [PATCH 24/25] =?UTF-8?q?update=2012=20=E6=97=A5=E5=B8=B8=E6=8E=92?= =?UTF-8?q?=E9=94=99=E5=8F=8Acase=E6=B5=81=E7=A8=8B/lab=20for=20debug=20lo?= =?UTF-8?q?g/README.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lab for debug log/README.md" | 69 ++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/README.md" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/README.md" index f6907d9..f3f2854 100644 --- "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/README.md" +++ "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for debug log/README.md" @@ -1 +1,68 @@ -### test \ No newline at end of file +### 安装nginxoss1和nginxoss2 +请参考 [Setting Up an NGINX Demo Environment](https://docs.nginx.com/nginx/deployment-guides/setting-up-nginx-demo-environment/)安装好nginxoss1和nginxoss2作为/application1和/application2 服务器,同时安装好plus1作为前端NGINX。 + +### 配置plus1,为相应的url打开debug,而且输出文件输出到不同的error_log文件: +配置/application1,日志文件输出到/var/log/nginx/application1.log,level为debug: +``` +location /application1 { + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_pass http://app1/; + error_log /var/log/nginx/application1.log debug; + } +``` +配置/application2,日志文件输出到/var/log/nginx/application2.log,level为debug: + +``` +location /application2 { + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_pass http://app2/; + error_log /var/log/nginx/application2.log debug; + } +``` +### 停止用nginx进程,以nginx-debug启动 + +``` +[root@plus1 /etc/nginx/conf.d]$systemctl stop nginx & systemctl start nginx-debug +[1] 42327 +[1]+ 完成 systemctl stop nginx +[root@plus1 /etc/nginx/conf.d]$ +``` +检查nginx-debug进程运行情况: + +``` +root@plus1 /etc/nginx/conf.d]$systemctl status nginx-debug +● nginx-debug.service - NGINX Plus - high performance web server + Loaded: loaded (/usr/lib/systemd/system/nginx-debug.service; disabled; vendor preset: disabled) + Active: active (running) since 日 2021-10-03 18:26:14 HKT; 33s ago + Docs: https://www.nginx.com/resources/ + Process: 42351 ExecStart=/usr/sbin/nginx-debug -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS) + Process: 42339 ExecStartPre=/usr/libexec/nginx-plus/check-subscription (code=exited, status=0/SUCCESS) + Main PID: 42353 (nginx-debug) + CGroup: /system.slice/nginx-debug.service + ├─42353 nginx: master process /usr/sbin/nginx-debug -c /etc/nginx/nginx.conf + └─42354 nginx: worker process + +10月 03 18:26:14 plus1 systemd[1]: Starting NGINX Plus - high performance web server... +10月 03 18:26:14 plus1 nginx-debug[42351]: nginx: [warn] 65535 worker_connections exceed open file resource limit: 1024 +10月 03 18:26:14 plus1 systemd[1]: PID file /var/run/nginx.pid not readable (yet?) after start. +10月 03 18:26:14 plus1 systemd[1]: Started NGINX Plus - high performance web server.``` + +``` +### 检查debug输出: +在浏览器上分别输入: +``` +http://10.1.20.241/application1 + +http://10.1.20.241/application2 +``` +在plus1上运行 + +``` +tail -f /var/log/nginx/application1 + +tail -f /var/log/nginx/application2 + +``` +可以查看到相应的debug日志输出 -- Gitee From 9d0029c191b2f68aef94065e914daacc180ad8bd Mon Sep 17 00:00:00 2001 From: leozou123 <183428922@qq.com> Date: Sun, 3 Oct 2021 10:35:50 +0000 Subject: [PATCH 25/25] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=2012=20?= =?UTF-8?q?=E6=97=A5=E5=B8=B8=E6=8E=92=E9=94=99=E5=8F=8Acase=E6=B5=81?= =?UTF-8?q?=E7=A8=8B/lab=20for=20HA=E5=88=87=E6=8D=A2=20=E4=B8=BA=2012=20?= =?UTF-8?q?=E6=97=A5=E5=B8=B8=E6=8E=92=E9=94=99=E5=8F=8Acase=E6=B5=81?= =?UTF-8?q?=E7=A8=8B/lab=20for=20HA=E5=88=87=E6=8D=A2=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 .../README.md" | 0 .../plus1/.keep" | 0 .../plus1/keepalived.conf" | 0 .../plus2/.keep" | 0 .../plus2/keepalived.conf" | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/.keep" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/.keep" (100%) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/README.md" (100%) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/.keep" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus1/.keep" (100%) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus1/keepalived.conf" (100%) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/.keep" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus2/.keep" (100%) rename "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" => "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus2/keepalived.conf" (100%) diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/.keep" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/.keep" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/README.md" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/README.md" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/README.md" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus1/.keep" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/.keep" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus1/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus1/keepalived.conf" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus1/keepalived.conf" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus1/keepalived.conf" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/.keep" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus2/.keep" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/.keep" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus2/.keep" diff --git "a/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" "b/12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus2/keepalived.conf" similarity index 100% rename from "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242/plus2/keepalived.conf" rename to "12 \346\227\245\345\270\270\346\216\222\351\224\231\345\217\212case\346\265\201\347\250\213/lab for HA\345\210\207\346\215\242\346\216\247\345\210\266/plus2/keepalived.conf" -- Gitee