{"id":187881,"date":"2020-11-09T09:44:59","date_gmt":"2020-11-09T01:44:59","guid":{"rendered":"http:\/\/4563.org\/?p=187881"},"modified":"2020-11-09T09:44:59","modified_gmt":"2020-11-09T01:44:59","slug":"%e9%98%bf%e9%87%8c%e4%ba%91%e5%bc%80%e4%ba%86%e4%b8%aa-rds-%e7%9a%84-mysql-%e6%95%b0%e6%8d%ae%e5%ba%93%ef%bc%8c%e5%88%86%e9%85%8d%e5%86%85%e7%bd%91%e7%bd%91%e6%ae%b5%e6%98%af%e4%b8%8d%e6%98%af","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=187881","title":{"rendered":"\u963f\u91cc\u4e91\u5f00\u4e86\u4e2a RDS \u7684 MySQL \u6570\u636e\u5e93\uff0c\u5206\u914d\u5185\u7f51\u7f51\u6bb5\u662f\u4e0d\u662f\u548c docker \u7684\u7f51\u6bb5\u51b2\u7a81\u4e86\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u963f\u91cc\u4e91\u5f00\u4e86\u4e2a RDS \u7684 MySQL \u6570\u636e\u5e93\uff0c\u5206\u914d\u5185\u7f51\u7f51\u6bb5\u662f\u4e0d\u662f\u548c docker \u7684\u7f51\u6bb5\u51b2\u7a81\u4e86\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gouchaoer2 <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u6628\u5929\u5f00\u7684 RDS\uff0cECS \u8001\u662f\u8fde\u4e0d\u4e0a RDS\uff0c\u533a\u57df \/\u767d\u540d\u5355 \/vpc \u7b49\u7b49\u4ec0\u4e48\u90fd\u68c0\u67e5\u5b8c\u4e86\uff0c\u6298\u817e\u4e86\u5f88\u4e45\u624d\u53d1\u73b0\u53ef\u80fd RDS \u7684 ip \u548c docker \u7f51\u6bb5\u51b2\u7a81\u4e86(\u5173\u952e\u4fe1\u606f\u7528&#8212;&#8211;\u66ff\u6362\u4e86)\uff0c\u89c1\uff1a<\/p>\n<pre><code>[[email&#160;protected] tmp]# ping ----------.mysql.rds.aliyuncs.com PING ----------.mysql.rds.aliyuncs.com (172.17.207.168) 56(84) bytes of data. ^C --- ----------.mysql.rds.aliyuncs.com ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms  [[email&#160;protected] tmp]# ifconfig br--------: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500         inet 172.26.0.1  netmask 255.255.0.0  broadcast 172.26.255.255         inet6 fe80::42:9cff:fef8:f178  prefixlen 64  scopeid 0x20&lt;link&gt;         ether 02:42:9c:f8:f1:78  txqueuelen 0  (Ethernet)         RX packets 9789  bytes 1099918 (1.0 MiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 9789  bytes 1099918 (1.0 MiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  docker0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500         inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255         inet6 fe80::42:56ff:fe41:ecbb  prefixlen 64  scopeid 0x20&lt;link&gt;         ether 02:42:56:41:ec:bb  txqueuelen 0  (Ethernet)         RX packets 1102216  bytes 347920462 (331.8 MiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 1262457  bytes 877382749 (836.7 MiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  <\/code><\/pre>\n<p>\u6211\u89c9\u5f97\u5e94\u8be5\u662f\u51b2\u7a81\u4e86\uff0c\u963f\u91cc\u4e91\u4e3a\u5565\u8981\u9009\u8fd9\u4e2a\u548c docker \u51b2\u7a81\u7684\u7f51\u6bb5\u6765\u5f53 RDS \u7684\u7f51\u6bb5\u5462\uff1f\u6211\u73b0\u5728\u8be5\u548b\u529e\uff1f\u5de5\u5355\u5f88\u4e45\u6ca1\u53cd\u5e94\u4e86<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4018098\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 263 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u963f\u91cc\u4e91\u7684 RDS \u4e0d\u662f\u4e13\u7528\u7f51\u7edc\u4e48\uff1f\u81ea\u5df1\u914d\u7f6e\u7f51\u6bb5\u7684\u5427\u3002 \u53e6 docker \u7684\u9ed8\u8ba4\u7f51\u6bb5\u4e5f\u53ef\u4ee5\u6539\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018099\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : gouchaoer2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @263 \u6211\u81ea\u5df1\u7684 vpc \u662f&#8221;inet 172.18.252.139 netmask 255.255.240.0 broadcast 172.18.255.255&#8243;\uff0c\u660e\u660e\u662f\u963f\u91cc\u4e91\u5f31\u9e21\uff0c\u4e0d\u77e5\u9053\u907f\u5f00 docker \u7684\u7f51\u6bb5\uff0c\u4e5f\u662f\u9189\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018100\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : gouchaoer2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             docker \u9ed8\u8ba4\u7f51\u6bb5\u6ca1\u90a3\u4e48\u597d\u6539\uff0c\u4e00\u53f0\u673a\u5668\u53ef\u4ee5\u6539\uff0c\u90a3 jenkins\/k8s \u4f60\u6539\uff1f\u51fa\u4e86\u95ee\u9898\u8c01\u53bb\u89e3\u51b3\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018101\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : gouchaoer2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u5de5\u5355\u6280\u672f\u4e5f\u662f\u5f31\u9e21\uff0c\u6298\u817e\u6211\u534a\u5929\u8981\u8fd9\u8981\u90a3\uff0c\u5565\u90fd\u63d0\u4f9b\u4e86\u641e\u4e86\u534a\u5929\uff0c\u8fd8\u662f\u6211\u53d1\u73b0\u7f51\u6bb5\u51b2\u7a81\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018102\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GKLuke <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gouchaoer2 \u4e0d\u662f\u6211\u6760\uff0c\u907f\u5f00\u4e86 172.17.0.0\/16\uff0c\u8fd8\u4f1a\u9047\u5230\u548c\u522b\u7684\u6bb5\u51b2\u7a81\u3002\u603b\u4f1a\u6709\u4eba\u6765\u5410\u69fd\u7684\uff0c\u770b\u770b\u8fd8\u662f\u600e\u4e48\u6539\u4e0b docker \u7684\u6bb5\u5427\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018103\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : gouchaoer2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @GKLuke \u4f60\u80fd\u4e3e\u4e2a\u4f8b\u5b50\u9664\u4e86 docker \u865a\u62df\u7f51\u6bb5\uff0c\u8fd8\u4f1a\u548c\u5565\u7f51\u6bb5\u51b2\u7a81\u4e48\uff1f\u6211\u81ea\u5df1\u4e00\u5929 ecs \u53ef\u4ee5\u6539\u7f51\u6bb5\uff0c\u4f46\u662f\u6301\u7eed\u96c6\u6210 \/k8s \u91cc\u8dd1\u7684\u5bb9\u5668\u600e\u4e48\u8fde RDS \uff1f\u5982\u679c\u51fa\u4e86\u95ee\u9898\uff0c\u627e\u4e2a\u4eba\u53bb\u7814\u7a76 k8s \u91cc\u600e\u4e48\u6539 docker \u5bb9\u5668\u7684\u7f51\u6bb5\uff1f\u641e\u4e0d\u5b9a\u548b\u529e\uff1f<\/p>\n<p>\u7528 AWS \u6ca1\u9047\u5230\u8fd9\u79cd\u95ee\u9898                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018104\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 263 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u81ea\u5df1\u6709 vpc\uff0c172.18 \uff0c\u5f00 rds \u7684\u65f6\u5019\u4e3a\u4ec0\u4e48\u4e0d\u9009\u5f00\u8fd9\u4e2a\u7f51\u6bb5\u7684 rds \u5462\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018105\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AIFNI45Mdxn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u8054\u7cfb\u4e00\u4e0b\u5728\u7ebf\u5ba2\u670d\u52a0\u6025\u4e00\u4e0b\u5de5\u5355\uff0c\u6216\u8005\u8ba9\u4ed6\u4eec\u8f6c\u66f4\u9ad8\u7ea7\u522b\u7684\u5de5\u7a0b\u5e08\u6765\u5904\u7406\u4e0d\u5c31\u597d\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018106\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eason1874 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             VPC \u53ef\u4ee5\u81ea\u5df1\u5206\u914d\u7f51\u6bb5\uff0c\u76f4\u63a5\u6539 RDS \u7684 VPC \u5c31\u597d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018107\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : gouchaoer2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8054\u7cfb\u5ba2\u670d\u9000\u6b3e\u8fd9\u4e2a RDS\uff0c\u7136\u540e\u6362\u4e86\u4e2a\u533a\u4e70\u4e86\u4e2a RDS\uff0c\u8fd9\u6837\u6700\u5feb\u4e86\uff0c\u6563\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4018108\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : stranger75 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gouchaoer2 \u53ea\u662f\u63d0\u4e00\u53e5\uff0c\u8001\u54e5\u5982\u679c\u540e\u7eed\u6709\u963f\u91cc\u4e91\u4ea7\u54c1\u95ee\u9898\u53ef\u4ee5\u8054\u7cfb\u6211\uff0c\u6211\u516c\u53f8\u6709\u6280\u672f\u56e2\u961f\uff08\u6709\u539f\u5382\u5de5\u5355\u5904\u7406\u7ecf\u9a8c\uff09\u53e6\u5916\u6211\u8fd9\u8fb9\u8fd8\u80fd\u63d0\u4f9b\u4ea7\u54c1\u6298\u6263\uff08\u53cc\u5341\u4e00\u671f\u95f4\u6709\u6ee1\u989d\u8d60\u793c\uff09\u5982\u679c\u6709\u9700\u8981\u7684\u8bdd\u770b\u6211\u4e3b\u9875\uff0c\u4e0d\u9700\u8981\u7684\u8bdd\u5c31\u65e0\u89c6\u6211\u8fd9\u53e5\u8bdd -doge                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u963f\u91cc\u4e91\u5f00\u4e86\u4e2a RDS \u7684 MySQ&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\/187881"}],"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=187881"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187881\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187881"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}