{"id":188463,"date":"2020-11-09T00:26:55","date_gmt":"2020-11-08T16:26:55","guid":{"rendered":"http:\/\/4563.org\/?p=188463"},"modified":"2020-11-09T00:26:55","modified_gmt":"2020-11-08T16:26:55","slug":"%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%ae-mysql-%e6%9c%8d%e5%8a%a1%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=188463","title":{"rendered":"\u8fdc\u7a0b\u8bbf\u95ee mysql \u670d\u52a1\u7684\u6700\u4f73\u5b9e\u8df5\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8fdc\u7a0b\u8bbf\u95ee mysql \u670d\u52a1\u7684\u6700\u4f73\u5b9e\u8df5\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : acshiryu <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u56e0\u4e3a\u4e1a\u52a1\u9700\u8981\uff0c\u516c\u53f8\u6709\u4e00\u53f0\u4e91\u4e3b\u673a\u4f7f\u7528 laravel\uff0c\u9700\u8981\u8bbf\u95ee\u5230\u8fdc\u7a0b\u7684\u6570\u636e\u5e93\u3002<\/p>\n<p>\u6570\u636e\u5e93\u6709\u591a\u4e2a\uff0c\u5206\u5e03\u5728\u4e0d\u540c\u7684\u5730\u65b9\uff0c\u6709\u4e9b\u533a\u57df\u7684\u4e91\u6570\u636e\u5e93\u4e0d\u652f\u6301\u4f7f\u7528\u5916\u7f51\u76f4\u63a5\u8bbf\u95ee\uff0c\u6240\u4ee5\u4e2d\u95f4\u9700\u8981\u6709\u4e2a\u4ee3\u7406\uff0c\u76ee\u524d\u67e5\u9605\u8d44\u6599\u53d1\u73b0\u4e24\u4e2a\u6bd4\u8f83\u53ef\u884c\u7684\u65b9\u6848\u3002<\/p>\n<ol>\n<li>\u4f7f\u7528 nginx \u8f6c\u53d1 TCP \u6d41\u91cf\uff0c\u90e8\u7f72\u6bd4\u8f83\u7b80\u5355\uff0cnginx \u914d\u7f6e\u597d\u767d\u540d\u5355 ip\uff0c\u76f4\u63a5\u5c31\u80fd\u8fdc\u7a0b\u8bbf\u95ee<\/li>\n<li>\u4f7f\u7528 ssh \u96a7\u9053\uff0c\u9700\u8981\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u90e8\u7f72\u516c\u94a5\uff0c\u4e1a\u52a1\u4e3b\u673a\u80fd\u591f ssh \u8bbf\u95ee\uff0c\u5b89\u5168\u6027\u9ad8\uff0c\u4f46\u96a7\u9053\u5e38\u9a7b\u6bd4\u8f83\u9ebb\u70e6\uff0c\u8fde\u63a5\u88ab\u65ad\u5f00\u4e86\u4e0d\u80fd\u505a\u5230\u81ea\u52a8\u91cd\u542f<\/li>\n<\/ol>\n<p>\u6211\u4e2a\u4eba\u503e\u5411\u4e8e\u4f7f\u7528\u65b9\u6848 1\uff0c\u4f46\u4e0d\u77e5\u9053\u5b89\u5168\u6027\u7ecf\u4e0d\u7ecf\u53d7\u7684\u4f4f\u8003\u9a8c\uff0c\u4e0d\u77e5\u9053 V \u53cb\u600e\u4e48\u770b\u8fd9\u4e24\u79cd\u65b9\u6848\u5b70\u4f18\u5b70\u52a3\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4098119\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cxh116 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f4\u63a5\u7528 ZeroTier \u7ec4 vpn \u8bbf\u95ee\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098120\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : des <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             vpn \u7ec4\u7f51\u8bbf\u95ee\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098121\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luguiyao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8003\u8651\u5ef6\u65f6\u95ee\u9898\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098122\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AkideLiu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9009 2 \u5427\uff0c\u5199\u4e2a\u811a\u672c\u76d1\u6d4b ssh \u96a7\u9053                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098123\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : saytesnake <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Nginx \u7684 Stream \u6a21\u5757\u5f88\u8ff7\uff0c\u4ec5\u4ec5\u662f\u6570\u636e\u5e93 GUI \u5de5\u5177\u7ba1\u7406\u8fdc\u7a0b\u8fde\u8fd8\u884c\uff0c\u5982\u679c\u662f\u8dd1\u4e1a\u52a1\u65b9\u9762\uff08\u4ec5\u6d4b\u8bd5\u73af\u5883\uff09\u7684\u7528 HAProxy \u6bd4\u8f83\u7a33\u5b9a\uff0cNginx \u4f30\u8ba1\u6ca1\u600e\u4e48\u8003\u8651\u7eaf TCP\/UDP \u4ee3\u7406\u3002<\/p>\n<p>\u641e\u4e0d\u61c2\u4ec0\u4e48\u539f\u56e0\uff0c\u5b9e\u8df5\u51fa\u6765\u7684\u3002<\/p>\n<p>\u5982\u679c\u662f\u751f\u4ea7\u7684\u8bdd\u8fd8\u662f\u522b\u4e86\uff0c\u4e0d\u8bf4\u4ec0\u4e48\u4ee3\u7406\uff0c\u5916\u7f51\u76f4\u8fde\u96be\u4ee5\u60f3\u8c61\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098124\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xiaoz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @saytesnake #5\uff0c\u8001\u54e5\u53ef\u4ee5\u5206\u4eab\u4e0b Nginx \u7684 Stream \u5177\u4f53\u6709\u54ea\u4e9b\u5751\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098125\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : saytesnake <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xiaoz \u914d\u7f6e\u5f88\u7b80\u5355\uff0c\u4f46\u65e0\u8bba\u600e\u4e48\u8c03 ka \u8d85\u65f6\uff0c\u8bf7\u6c42\u8d85\u65f6\u7b49\u7b49\uff0c\u5e94\u7528\u7aef\u8dd1\u4e2a\u4e1c\u897f\u8bfb\u5199\u4e00\u591a\u5c31\u9891\u9891\u65ad\u8fde\uff0c\u800c HA \u5219\u4e00\u5207\u6b63\u5e38\u3002<\/p>\n<p>\u4e4b\u524d\u4e5f\u6709\u540c\u4e8b\u914d\u7f6e\u81ea\u5efa\u90ae\u7bb1\uff08 iRedmail \uff09\u7684\u6536\u53d1\u7aef\u53e3\u8f6c\u53d1\uff0c\u4e00\u5f00\u59cb\u7528\u7684\u4e5f\u662f Nginx\uff0c\u7ecf\u5e38\u65ad\u8fde\uff0c\u4e2d\u9014\u8fd8\u6362\u8fc7\u7eaf iptables\/firewalld\uff0c\u6bd4 Nginx \u597d\u4e00\u70b9\uff0c\u4f46\u8fd8\u662f\u6709\u65ad\u8fde\u7684\u60c5\u51b5\uff0c\u6362 HA \u5c31\u7a33\u5b9a\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098126\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lithiumii <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ssh \u53ef\u4ee5\u5f04\u4e2a auto ssh \u81ea\u52a8\u91cd\u8fde(\u5fc5\u987b\u662f\u7528\u516c\u94a5)\uff0c\u4e5f\u6709 docker \u7248\uff0c\u8fd8\u6709 python \u5b9e\u73b0\u7684\u7248\u672c\uff0c\u751a\u81f3\u80fd\u5bc6\u7801\u91cd\u8fde                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098127\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xiaoz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @saytesnake #7\uff0c\u597d\u7684\uff0c\u611f\u8c22\u5206\u4eab\uff0c\u6211\u4e4b\u524d\u914d\u7f6e\u8fc7 stream \u7528\u6765\u52a0\u901f SSH\uff0c\u4e5f\u9047\u5230\u7ecf\u5e38\u65ad\u6389\u7684\u60c5\u51b5\uff0c\u6211\u8bd5\u8bd5 HA                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098128\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whitehack <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bc6\u7801\u591f\u590d\u6742\u5c31\u76f4\u63a5\u5728\u8df3\u677f\u673a\u4e0a\u7528 tcp \u4ee3\u7406\u4e00\u4e0b. \u4e0d\u7528\u7684\u65f6\u5019\u5173\u6389\u5c31\u597d\u4e86<\/p>\n<p>\u8fd9\u6709\u4e2a\u7b80\u5355\u7684 ,\u4e5f\u53ef\u4ee5\u7528 docker \u542f\u52a8 <\/p>\n<p>https:\/\/github.com\/whtiehack\/socket-proxy                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098129\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ciqulover <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bf9\u4e8e tcp \u6d41\u91cf\u8f6c\u53d1\uff0c\u5728\u4e0d\u590d\u6742\u7684\u573a\u666f\u4e0b\u4e2a\u4eba\u7ecf\u9a8c\u6700\u7a33\u5065\u7684\u65b9\u6848\uff1a<br \/>1. ipatbles \u7aef\u53e3\u8f6c\u53d1\uff0c\u9700\u8981\u5185\u6838\u5f00\u542f forward\uff0c\u4f18\u70b9\u662f\u4e00\u822c\u670d\u52a1\u5668\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u522b\u7684\u8f6f\u4ef6\uff0c\u975e\u5e38\u7a33\u5b9a\uff0c\u5c31\u662f iptables \u914d\u7f6e\u9ebb\u70e6\u4e9b\u3002<br \/>2. haproxy\uff0c\u7a33\u5b9a\u7075\u6d3b\u4ece\u4e0d\u51fa\u9519                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098130\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sujin190 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90e8\u7f72\u670d\u52a1\u7684\u8bdd\uff0c\u6700\u597d\u8fd8\u662f\u7528 vpn \u7ec4\u7f51\uff0c\u5b89\u5168\u4e5f\u9760\u8c31                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8fdc\u7a0b\u8bbf\u95ee mysql \u670d\u52a1\u7684\u6700\u4f73\u5b9e&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\/188463"}],"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=188463"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/188463\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188463"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}