{"id":135878,"date":"2020-07-21T17:03:31","date_gmt":"2020-07-21T09:03:31","guid":{"rendered":"http:\/\/4563.org\/?p=135878"},"modified":"2020-07-21T17:03:31","modified_gmt":"2020-07-21T09:03:31","slug":"%e9%97%ae%e4%b8%aa-linux-%e7%9b%b8%e5%85%b3%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=135878","title":{"rendered":"\u95ee\u4e2a Linux \u76f8\u5173\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u95ee\u4e2a Linux \u76f8\u5173\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sologgfun <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u8981\u914d\u7f6e\u4e00\u4e2a LVS \uff08 DR \uff09\uff0c\u6709 2 \u4e2a RS(172.17.0.2 \u548c 172.17.0.3)\u548c 1 \u4e2a LB<\/p>\n<p>\u6211\u53ef\u4ee5\u5728 LB \u4e0a\u76f4\u63a5 curl \u8bbf\u95ee RS<\/p>\n<p>\u6309\u6d41\u7a0b\u6211\u5728 LoadBalancer \u4e0a\u914d\u7f6e\u4e86\u4e00\u4e2a\u5b50\u7f51\u5361 ifconfig eth0:0 172.17.0.10:80 netmask 255.255.255.0 up<\/p>\n<p>\u78b0\u5230\u4e00\u4e2a\u95ee\u9898\uff0c\u5c31\u662f\u539f\u672c\u6211\u901a\u8fc7 curl \u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee 172.17.0.2 \u548c 172.17.0.3 \u7684\u670d\u52a1\uff0c\u4f46\u662f\u5f53\u6211\u914d\u7f6e\u5b8c\u8fd9\u4e2a\u5b50\u7f51\u5361\u4e4b\u540e\u5c31\u65e0\u6cd5\u8bbf\u95ee\u4e86\uff0c\u662f\u4e3a\u4ec0\u4e48\u5462\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2488576\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : snoopygao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             :80 \u662f\u4ec0\u4e48\u610f\u601d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2488577\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sologgfun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @snoopygao \u8fd9\u4e2a\u5199\u9519\u4e86\uff0c\u5176\u5b9e\u662f ifconfig eth0:0 172.17.0.10 netmask 255.255.255.0 up                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u4e2a Linux \u76f8\u5173\u7684\u95ee\u9898 \u8cc7\u6df1&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/135878"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135878"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/135878\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135878"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}