{"id":1751,"date":"2023-06-19T17:51:38","date_gmt":"2023-06-19T09:51:38","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1751"},"modified":"2023-06-19T17:51:59","modified_gmt":"2023-06-19T09:51:59","slug":"keepalive-nginx-%e5%ae%9e%e7%8e%b0%e9%ab%98%e5%8f%af%e7%94%a8","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/nginx\/keepalive-nginx-%e5%ae%9e%e7%8e%b0%e9%ab%98%e5%8f%af%e7%94%a8\/","title":{"rendered":"keepalive + nginx \u5b9e\u73b0\u9ad8\u53ef\u7528"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<blockquote cid=\"n4\" mdtype=\"blockquote\" style=\"box-sizing: border-box;margin-top: 0.8em;margin-bottom: 0.8em;border-left-width: 4px;border-left-color: rgb(66, 185, 131);padding: 10px 15px;color: rgb(119, 119, 119);background-color: rgba(66, 185, 131, 0.1);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;white-space: normal;text-size-adjust: auto;\">\n<p cid=\"n3\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;white-space: pre-wrap;word-spacing: 0.05rem;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u672c\u7bc7\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e0b keepalive + nginx \u6765\u5b9e\u73b0 \u5bf9\u4e8enginx\u7684\u9ad8\u53ef\u7528, \u8fd8\u662f\u7b80\u5355\u7684\u4e3b\u5907\u6a21\u5f0f<\/span><\/p>\n<\/blockquote>\n<p cid=\"n5\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"image\" style=\"box-sizing: border-box;min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;vertical-align: top;display: inline-block;width: 800px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.6157635467980296\" data-type=\"png\" data-w=\"1218\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044901956.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6157635467980296\" data-type=\"png\" data-w=\"1218\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044901956.png\"><\/noscript><\/span><\/p>\n<h3 cid=\"n6\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.4rem;margin-top: 20px;margin-bottom: 7px;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">1.\u6982\u8ff0<\/span><\/h3>\n<p cid=\"n8\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u524d\u9762\u6709\u4e86\u89e3keepalive \u7684\u4e3b\u5907\u7684\u57fa\u672c\u4f7f\u7528, \u4f46\u662f\u90a3\u79cd\u662f\u9488\u5bf9\u5b95\u673a\u7b49\u60c5\u51b5 \u505c\u6b62\u4e86keepalive \u7684\u8fdb\u7a0b\u5b9e\u73b0\u7684 vip\u7684\u6f02\u79fb,\u672c\u7bc7\u628akeepalive \u6dfb\u52a0\u6821\u9a8cnginx\u5b58\u6d3b\u811a\u672c \u5b9e\u73b0\u9488\u5bf9nginx\u7684\u76d1\u63a7, \u5b9e\u73b0nginx\u7684\u9ad8\u53ef\u7528<\/span><\/p>\n<p cid=\"n13\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<h3 cid=\"n21\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.4rem;margin-top: 20px;margin-bottom: 7px;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2.\u51c6\u5907\u5de5\u4f5c<\/span><\/h3>\n<p cid=\"n22\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u51c6\u59072\u53f0\u673a\u5668 , \u628a111\u5b9a\u4e49\u4e3a keepalive \u7684 MASTER \u8282\u70b9<\/span><\/p>\n<figure cid=\"n23\" mdtype=\"table\" style=\"box-sizing: border-box;margin-top: 1.2em;margin-bottom: 1.2em;overflow-x: auto;cursor: default;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;white-space: normal;text-size-adjust: auto;background-color: rgb(255, 255, 255);\">\n<table width=\"800\" style=\"width: 768px;\">\n<thead style=\"box-sizing: border-box;background-color: rgb(250, 250, 250);\">\n<tr cid=\"n24\" mdtype=\"table_row\" style=\"box-sizing: border-box;break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);\">\n<th style=\"box-sizing: border-box;padding: 6px 13px;border-top-width: 1px;border-bottom-width: 0px;border-top-color: rgb(223, 226, 229);border-right-color: rgb(223, 226, 229);border-left-color: rgb(223, 226, 229);text-align: left;background-color: rgb(242, 242, 242);\"><span cid=\"n25\" mdtype=\"table_cell\" style=\"box-sizing: border-box;display: inline-block;min-width: 1ch;width: 415.640625px;min-height: 10px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">ip<\/span><\/span><\/th>\n<th style=\"box-sizing: border-box;padding: 6px 13px;border-top-width: 1px;border-bottom-width: 0px;border-top-color: rgb(223, 226, 229);border-right-color: rgb(223, 226, 229);border-left-color: rgb(223, 226, 229);text-align: left;background-color: rgb(242, 242, 242);\"><span cid=\"n26\" mdtype=\"table_cell\" style=\"box-sizing: border-box;display: inline-block;min-width: 1ch;width: 329.375px;min-height: 10px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">keepalived<\/span><\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody style=\"box-sizing: border-box;\">\n<tr cid=\"n27\" mdtype=\"table_row\" style=\"box-sizing: border-box;break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px;\"><span cid=\"n28\" mdtype=\"table_cell\" style=\"box-sizing: border-box;display: inline-block;min-width: 1ch;width: 415.640625px;min-height: 10px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">172.16.225.111<\/span><\/span><\/td>\n<td style=\"box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px;\"><span cid=\"n29\" mdtype=\"table_cell\" style=\"box-sizing: border-box;display: inline-block;min-width: 1ch;width: 329.375px;min-height: 10px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">MASTER<\/span><\/span><\/td>\n<\/tr>\n<tr cid=\"n30\" mdtype=\"table_row\" style=\"box-sizing: border-box;break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);background-color: rgb(250, 250, 250);\">\n<td style=\"box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px;\"><span cid=\"n31\" mdtype=\"table_cell\" style=\"box-sizing: border-box;display: inline-block;min-width: 1ch;width: 415.640625px;min-height: 10px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">172.16.225.110<\/span><\/span><\/td>\n<td style=\"box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px;\"><span cid=\"n32\" mdtype=\"table_cell\" style=\"box-sizing: border-box;display: inline-block;min-width: 1ch;width: 329.375px;min-height: 10px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">BACKUP<\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p cid=\"n37\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u5206\u522b\u57282\u53f0\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u597dnginx \u5e76\u4e14\u4fee\u6539\u9ed8\u8ba4\u7684 index.html &nbsp;\u6dfb\u52a0\u4e0a ip \u6807\u8bc6\u65b9\u4fbf\u533a\u5206. \u5982\u4e0b:<\/span><\/p>\n<p cid=\"n39\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"image\" style=\"box-sizing: border-box;min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;vertical-align: top;display: inline-block;width: 800px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.36655405405405406\" data-type=\"png\" data-w=\"1184\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044903417.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.36655405405405406\" data-type=\"png\" data-w=\"1184\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044903417.png\"><\/noscript><\/span><\/p>\n<p cid=\"n43\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<p cid=\"n41\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<h3 cid=\"n45\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.4rem;margin-top: 20px;margin-bottom: 7px;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.\u914d\u7f6e keepalived<\/span><\/h3>\n<p cid=\"n47\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u5728keepalived \u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 instance \u91cc\u9762\u914d\u7f6e track_script \u6307\u5b9a \u68c0\u67e5nginx\u662f\u5426\u5b58\u6d3b\u7684\u811a\u672c<\/span><\/p>\n<p cid=\"n48\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<h4 cid=\"n54\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.2rem;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.1 master (172.16.225.111)<\/span><\/h4>\n<pre spellcheck=\"false\" lang=\"nginx\" cid=\"n62\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--font-monospace);font-size: 0.85rem;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-size: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;width: inherit;border-width: 1px;border-style: solid;border-color: rgb(244, 244, 244);-webkit-font-smoothing: initial;line-height: 1.43rem;border-radius: 2px;overflow-wrap: normal;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);text-size-adjust: auto;background-position: inherit;background-repeat: inherit;background-color: rgb(248, 248, 248) !important;margin-top: 0.8rem !important;margin-bottom: 0.8rem !important;padding-top: 0.3rem !important;padding-bottom: 0.3rem !important;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">! Configuration<\/span> <span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">File for<\/span> <span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">keepalived<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">global_defs <\/span>{<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">router_id LB111<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">vrrp_script chk_nginx<\/span> {<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u5177\u4f53\u7684\u811a\u672c<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">script <\/span><span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">\"\/etc\/keepalived\/nginx_check.sh\"<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">interval 2<\/span> <span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># 2s\u6267\u884c\u4e00\u6b21 <\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">weight -20<\/span> <span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u5931\u8d25\u4e00\u6b21 \u5219\u4f18\u5148\u7ea7 -20<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">vrrp_instance VI_1<\/span> {<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">state MASTER<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">interface ens160<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">virtual_router_id 51<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">priority 100<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">advert_int 1<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">authentication <\/span>{<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">auth_type PASS<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">auth_pass 1111<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp;  }<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">virtual_ipaddress <\/span>{<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp;  172.16.225.<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">200<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp;  }<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u6307\u5b9a\u811a\u672c<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">track_script <\/span>{<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">chk_nginx<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp;  }<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<p cid=\"n64\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<h4 cid=\"n56\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.2rem;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.2 master (172.16.225.110)<\/span><\/h4>\n<pre spellcheck=\"false\" lang=\"nginx\" cid=\"n50\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--font-monospace);font-size: 0.85rem;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-size: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;width: inherit;border-width: 1px;border-style: solid;border-color: rgb(244, 244, 244);-webkit-font-smoothing: initial;line-height: 1.43rem;border-radius: 2px;overflow-wrap: normal;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);text-size-adjust: auto;background-position: inherit;background-repeat: inherit;background-color: rgb(248, 248, 248) !important;margin-top: 0.8rem !important;margin-bottom: 0.8rem !important;padding-top: 0.3rem !important;padding-bottom: 0.3rem !important;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">! Configuration<\/span> <span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">File for<\/span> <span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">keepalived<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">global_defs <\/span>{<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">router_id LB111<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">vrrp_script chk_nginx<\/span> {<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">script <\/span><span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">\"\/etc\/keepalived\/nginx_check.sh\"<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">interval 2<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; <span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">weight -20<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">vrrp_instance VI_1<\/span> {<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">state BACKUP<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">interface ens160<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">virtual_router_id 51<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">priority 90<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">advert_int 1<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">authentication <\/span>{<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">auth_type PASS<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">auth_pass 1111<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp;  }<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">virtual_ipaddress <\/span>{<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; 172.16.225.<span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">200<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp;  }<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">track_scrip <\/span>{<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">chk_nginx<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp;  }<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<p cid=\"n52\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<h3 cid=\"n35\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.4rem;margin-top: 20px;margin-bottom: 7px;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.\u914d\u7f6e nginx_check.sh<\/span><\/h3>\n<p cid=\"n66\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u4e3b\u8981\u662f\u8fd9\u4e2a\u811a\u672c \u8fd9\u4e2a\u811a\u672c\u7684\u5185\u5bb9\u5c31\u662f <\/span><span md-inline=\"code\" spellcheck=\"false\" style=\"box-sizing: border-box;\"><code style=\"box-sizing: border-box;font-family: var(--font-monospace);padding: 2px 4px;border-radius: 2px;font-size: 0.92rem;color: rgb(233, 105, 0);background-color: rgb(248, 248, 248);\">\u901a\u8fc7ps\u547d\u4ee4\u68c0\u67e5 nginx\u8fdb\u7a0b\u662f\u5426\u5b58\u6d3b<\/code><\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\"> ,\u5982\u679c\u4e0d\u5b58\u6d3b \u5219\u5c1d\u8bd5\u542f\u52a8\u4e00\u6b21 \u5219\u68c0\u67e5 ,<\/span><span md-inline=\"code\" spellcheck=\"false\" style=\"box-sizing: border-box;\"><code style=\"box-sizing: border-box;font-family: var(--font-monospace);padding: 2px 4px;border-radius: 2px;font-size: 0.92rem;color: rgb(233, 105, 0);background-color: rgb(248, 248, 248);\">\u5982\u679c\u8fd8\u662f\u542f\u52a8\u4e0d\u8d77\u6765 \u5219 \u628akeepalived \u5173\u95ed<\/code><\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">, \u4ece\u800c\u8ba9 keepalived \u80fd\u68c0\u6d4b\u5230 \u5e76\u4e14 vip \u80fd\u591f\u6f02\u79fb\u5230\u5176\u4ed6\u673a\u5668<\/span><\/p>\n<p cid=\"n68\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<pre spellcheck=\"false\" lang=\"shell\" cid=\"n74\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--font-monospace);font-size: 0.85rem;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-size: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;width: inherit;border-width: 1px;border-style: solid;border-color: rgb(244, 244, 244);-webkit-font-smoothing: initial;line-height: 1.43rem;border-radius: 2px;overflow-wrap: normal;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);text-size-adjust: auto;background-position: inherit;background-repeat: inherit;background-color: rgb(248, 248, 248) !important;margin-top: 0.8rem !important;margin-bottom: 0.8rem !important;padding-top: 0.3rem !important;padding-bottom: 0.3rem !important;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">#!\/bin\/bash<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">status<\/span><span style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span><span style=\"box-sizing: border-box;color: rgb(0, 153, 0);\">$(ps -C nginx --no-heading|wc -l)<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">if<\/span> [ <span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">\"<\/span><span style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">${status}<\/span><span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">\"<\/span> <span style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">\"0\"<\/span> ]; <span style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">then<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u5c1d\u8bd5\u542f\u52a8\u4e00\u6b21<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  systemctl <span style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">start<\/span> nginx<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u518d\u6b21\u68c0\u67e5ngixn \u8fdb\u7a0b<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">status2<\/span><span style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span><span style=\"box-sizing: border-box;color: rgb(0, 153, 0);\">$(ps -C nginx --no-heading|wc -l)<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">if<\/span> [ <span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">\"<\/span><span style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">${status2}<\/span><span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">\"<\/span> <span style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">\"0\"<\/span>  ]; <span style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">then<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u5173\u95ed keepalived <\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  systemctl <span style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">stop<\/span> keepalived<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">fi<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">fi<\/span><\/span><\/pre>\n<p cid=\"n69\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"strong\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;padding-right: 1px;padding-left: 1px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u9700\u8981\u57282\u53f0\u673a\u5668\u4e0a\u90fd\u914d\u7f6e\u4e0a\u8fd9\u4e2a\u811a\u672c<\/span><\/strong><\/span><\/p>\n<p cid=\"n82\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<pre spellcheck=\"false\" lang=\"shell\" cid=\"n85\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--font-monospace);font-size: 0.85rem;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-size: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;width: inherit;border-width: 1px;border-style: solid;border-color: rgb(244, 244, 244);-webkit-font-smoothing: initial;line-height: 1.43rem;border-radius: 2px;overflow-wrap: normal;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);text-size-adjust: auto;background-position: inherit;background-repeat: inherit;background-color: rgb(248, 248, 248) !important;margin-top: 0.8rem !important;margin-bottom: 0.8rem !important;padding-top: 0.3rem !important;padding-bottom: 0.3rem !important;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u7ed9\u811a\u672c\u4e00\u4e2a \u53ef\u6267\u884c\u7684\u6743\u9650<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">chmode <span style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">+<\/span>x \/etc\/keepalived\/nginx_check.sh<\/span><\/pre>\n<p cid=\"n87\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<pre spellcheck=\"false\" lang=\"shell\" cid=\"n100\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--font-monospace);font-size: 0.85rem;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-size: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;width: inherit;border-width: 1px;border-style: solid;border-color: rgb(244, 244, 244);-webkit-font-smoothing: initial;line-height: 1.43rem;border-radius: 2px;overflow-wrap: normal;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);text-size-adjust: auto;background-position: inherit;background-repeat: inherit;background-color: rgb(248, 248, 248) !important;margin-top: 0.8rem !important;margin-bottom: 0.8rem !important;padding-top: 0.3rem !important;padding-bottom: 0.3rem !important;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u91cd\u542f\u6216\u8005\u542f\u52a8 keepalived <\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">systemctl <span style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">restart<\/span> keepalived<\/span><\/pre>\n<p cid=\"n102\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<h3 cid=\"n93\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.4rem;margin-top: 20px;margin-bottom: 7px;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.\u5173\u95ed selinux<\/span><\/h3>\n<p cid=\"n97\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u5982\u679c\u91cd\u542f\u540e\u6216\u8005\u542f\u52a8\u540e \u67e5\u770b\u65e5\u5fd7\u6709\u5982\u4e0b\u629b\u9519 , \u5219\u662f selinux \u6ca1\u6709\u5173\u95ed<\/span><\/p>\n<p cid=\"n91\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"image\" style=\"box-sizing: border-box;min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;vertical-align: top;display: inline-block;width: 800px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.1663306451612903\" data-type=\"png\" data-w=\"1984\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044906379.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.1663306451612903\" data-type=\"png\" data-w=\"1984\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044906379.png\"><\/noscript><\/span><\/p>\n<p cid=\"n89\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<pre spellcheck=\"false\" lang=\"shell\" cid=\"n106\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--font-monospace);font-size: 0.85rem;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-size: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;width: inherit;border-width: 1px;border-style: solid;border-color: rgb(244, 244, 244);-webkit-font-smoothing: initial;line-height: 1.43rem;border-radius: 2px;overflow-wrap: normal;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);text-size-adjust: auto;background-position: inherit;background-repeat: inherit;background-color: rgb(248, 248, 248) !important;margin-top: 0.8rem !important;margin-bottom: 0.8rem !important;padding-top: 0.3rem !important;padding-bottom: 0.3rem !important;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u4e34\u65f6\u5173\u95ed<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">setenforce <span style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">0<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">#\u6c38\u4e45\u5173\u95ed<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">sed<\/span> <span style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">-i<\/span> <span style=\"box-sizing: border-box;color: rgb(34, 162, 201);\">'s\/SELINUX=enforcing\/SELINUX=disabled\/'<\/span> \/etc\/selinux\/config<\/span><\/pre>\n<p cid=\"n108\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<p cid=\"n72\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<h3 cid=\"n110\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.4rem;margin-top: 20px;margin-bottom: 7px;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">6.\u6a21\u62df\u6d4b\u8bd5<\/span><\/h3>\n<p cid=\"n112\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2\u53f0\u673a\u5668 \u5206\u522b\u542f\u52a8nginx \u548c keepalive \u540e<\/span><\/p>\n<p cid=\"n120\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"strong\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;padding-right: 1px;padding-left: 1px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u8bbf\u95ee vip 172.16.225.200 \u8fd9\u4e2avip \u76ee\u524d\u5728 111 master\u673a\u5668\u4e0a<\/span><\/strong><\/span><\/p>\n<p cid=\"n125\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"image\" style=\"box-sizing: border-box;min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;vertical-align: top;display: inline-block;width: 800px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.3452855245683931\" data-type=\"png\" data-w=\"1506\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044910134.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.3452855245683931\" data-type=\"png\" data-w=\"1506\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044910134.png\"><\/noscript><\/span><\/p>\n<p cid=\"n113\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u5728master\u673a\u5668\u4e0a \u628angixn\u5173\u95ed<\/span><\/p>\n<pre spellcheck=\"false\" lang=\"shell\" cid=\"n116\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--font-monospace);font-size: 0.85rem;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-size: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;width: inherit;border-width: 1px;border-style: solid;border-color: rgb(244, 244, 244);-webkit-font-smoothing: initial;line-height: 1.43rem;border-radius: 2px;overflow-wrap: normal;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);text-size-adjust: auto;background-position: inherit;background-repeat: inherit;background-color: rgb(248, 248, 248) !important;margin-top: 0.8rem !important;margin-bottom: 0.8rem !important;padding-top: 0.3rem !important;padding-bottom: 0.3rem !important;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u5173\u95ed nginx <\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">.\/nginx <span style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">-s<\/span> <span style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">stop<\/span><\/span><\/pre>\n<p cid=\"n118\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<pre spellcheck=\"false\" lang=\"shell\" cid=\"n130\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--font-monospace);font-size: 0.85rem;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-size: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;width: inherit;border-width: 1px;border-style: solid;border-color: rgb(244, 244, 244);-webkit-font-smoothing: initial;line-height: 1.43rem;border-radius: 2px;overflow-wrap: normal;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);text-size-adjust: auto;background-position: inherit;background-repeat: inherit;background-color: rgb(248, 248, 248) !important;margin-top: 0.8rem !important;margin-bottom: 0.8rem !important;padding-top: 0.3rem !important;padding-bottom: 0.3rem !important;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span style=\"box-sizing: border-box;color: rgb(170, 85, 0);\"># \u6b64\u65f6\u67e5\u770b keepalived \u7684\u72b6\u6001\u5c31\u662f dead\u4e86<\/span><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">systemctl status keepalived<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">\u25cf keepalived.service <span style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">-<\/span> LVS and VRRP High Availability Monitor<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; Loaded: loaded (\/usr\/lib\/systemd\/system\/keepalived.service; disabled; vendor preset: disabled)<\/span>\n<span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> &nbsp; Active: inactive (dead)<\/span><\/pre>\n<p cid=\"n132\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<p cid=\"n136\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"strong\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;padding-right: 1px;padding-left: 1px;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u518d\u6b21\u8bbf\u95eevip &nbsp;172.16.225.200 , \u53ef\u4ee5\u770b\u5230 vip \u5df2\u7ecf\u8dd1\u5230\u4e86 backup\u673a\u5668110\u4e0a\u4e86<\/span><\/strong><\/span><\/p>\n<p cid=\"n128\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"image\" style=\"box-sizing: border-box;min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;vertical-align: top;display: inline-block;width: 800px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.31016042780748665\" data-type=\"png\" data-w=\"1496\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044913674.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.31016042780748665\" data-type=\"png\" data-w=\"1496\" style=\"box-sizing: border-box;border-width: 0px 4px 0px 2px;border-right-style: solid;border-left-style: solid;border-right-color: transparent;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;transform: translateZ(0px);display: block;margin: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044913674.png\"><\/noscript><\/span><\/p>\n<p cid=\"n134\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">\n<h3 cid=\"n139\" mdtype=\"heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.4rem;margin-top: 20px;margin-bottom: 7px;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u603b\u7ed3<\/span><\/h3>\n<p cid=\"n141\" mdtype=\"paragraph\" style=\"box-sizing: border-box;line-height: 1.6rem;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;word-spacing: 0.05rem;caret-color: rgb(52, 73, 94);color: rgb(52, 73, 94);font-family: Ubuntu, &quot;Source Sans Pro&quot;, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u672c\u7bc7\u4e3b\u8981\u4ecb\u7ecd\u4e86 keepalive + nginx \u7684\u57fa\u672c\u7684\u4e3b\u5907\u914d\u7f6e \u5b9e\u73b0\u4e86 nginx \u7684\u9ad8\u53ef\u7528,\u6838\u5fc3\u70b9\u5c31\u662f\u914d\u7f6e nginx_check.sh\u811a\u672c\u7ed9keepalive \u7684\u6267\u884c, \u8fd9\u4e2anginx_check.sh \u811a\u672c\u5185\u5982\u679c\u53d1\u73b0nginx \u4e0d\u5b58\u6d3b \u5c1d\u8bd5\u542f\u52a8 \u5982\u679c\u8fd8\u662f\u4e0d\u5b58\u6d3b \u5219\u76f4\u63a5\u5173\u95ed keepalive \u8fdb\u7a0b<\/span><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote><p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 Johnny\u5c4b<\/p><\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e0b keepalive + nginx \u6765\u5b9e\u73b0 \u5bf9\u4e8enginx\u7684\u9ad8\u53ef\u7528, \u8fd8\u662f\u7b80\u5355\u7684\u4e3b\u5907\u6a21\u5f0f 1.\u6982\u8ff0 \u524d\u9762\u6709\u4e86\u89e3k &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1745,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-1751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nginx"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044859705-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044901956.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044859705-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044859705-1024x435.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044901956.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044859705-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044859705-1024x435.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044859705.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044901956.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044901956.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044903417.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044903417.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044906379.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044906379.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044910134.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044910134.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044913674.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044913674.png","id":"image9"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Nginx","post_date":"2023-06-19","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"1","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":304,"next_post_id":1875,"next_post_title":"\u6027\u80fd\u5206\u6790-\u5982\u4f55\u5206\u6790Nginx\u7684\u8fde\u63a5\u5e76\u53d1\u6570","previous_post_id":1880,"previous_post_title":"\u6027\u80fd\u5206\u6790-Nginx\u542f\u52a8gzip","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1751"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1751\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1745"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}