{"id":173896,"date":"2020-10-26T21:22:51","date_gmt":"2020-10-26T13:22:51","guid":{"rendered":"http:\/\/4563.org\/?p=173896"},"modified":"2020-10-26T21:22:51","modified_gmt":"2020-10-26T13:22:51","slug":"%e6%af%8f%e5%88%86%e9%92%9f%e5%85%81%e8%ae%b8%e5%b0%9d%e8%af%95%e5%af%86%e7%a0%81%e6%9c%80%e5%a4%a7%e6%ac%a1%e6%95%b0%ef%bc%8c%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=173896","title":{"rendered":"\u6bcf\u5206\u949f\u5141\u8bb8\u5c1d\u8bd5\u5bc6\u7801\u6700\u5927\u6b21\u6570\uff0c\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6bcf\u5206\u949f\u5141\u8bb8\u5c1d\u8bd5\u5bc6\u7801\u6700\u5927\u6b21\u6570\uff0c\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : black11black <\/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>\u5982\u9898\uff0c\u60f3\u95ee\u95ee\u5927\u5bb6\u7684\u670d\u52a1\u90fd\u662f\u5982\u4f55\u5b9e\u73b0\u4e0d\u8ba9\u4eba\u968f\u4fbf\u731c\u5bc6\u7801\u7684\u3002<\/p>\n<p>\u7cfb\u7edf\u5c42\u9762\u4e00\u822c\u641e\u4e2a fail2ban \u5c31\u5f88\u8f7b\u677e\u89e3\u51b3\u9632\u6b62\u66b4\u529b\u7834\u89e3\u7684\u95ee\u9898\u4e86\uff0c\u4e00\u822c\u90e8\u7f72 web \u4e1a\u52a1\u5219\u8981\u81ea\u5df1\u641e\u3002\u6211\u7b80\u5355\u60f3\u4e86\u4e00\u4e0b\u7528\u8fc7\u7684\u65b9\u6848\u6709\u51e0\u79cd\uff1a<\/p>\n<p>1 \u3001\u4e1a\u52a1\u8282\u70b9\u7ef4\u62a4 IP \u8ba1\u6570\uff1a\u4f18\u70b9\u662f\u7b80\u5355\u7c97\u66b4\uff0c\u7f3a\u70b9\u662f\u8282\u70b9\u6709\u72b6\u6001\uff0c\u6211\u4e2a\u4eba\u83ab\u540d\u5176\u5999\u5f97\u4e86\u4e00\u79cd\u8282\u70b9\u6709\u72b6\u6001\u5c31\u5f88\u4e0d\u723d\u7684\u75c5\u3002<\/p>\n<p>2 \u3001\u53e6\u5916\u521b\u5efa\u4e00\u4e2a redis \u670d\u52a1\uff0c\u5404\u8282\u70b9\u5171\u540c\u7ef4\u62a4\u8ba1\u6570\u72b6\u6001\uff1a\u4f18\u70b9\u5f88\u591a\uff0c\u7f3a\u70b9\u662f\u53e6\u5916\u591a\u5f00\u4e00\u4e2a\u670d\u52a1\u589e\u52a0\u4e86\u7cfb\u7edf\u590d\u6742\u6027\uff0c\u90e8\u7f72\u3001\u7ef4\u62a4\u8d77\u6765\u611f\u89c9\u9ebb\u70e6\u3002<\/p>\n<p>3 \u3001\u5728 sql \u91cc\u7ef4\u62a4\u5171\u540c\u7684\u8ba1\u6570\u72b6\u6001\uff1a\u4e00\u822c\u5f88\u96be\u6709\u7f51\u7ad9\u4e0d\u63a5\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7684\uff0c\u6240\u4ee5\u8fd9\u4e2a\u53ef\u4ee5\u5229\u7528\u5df2\u6709\u670d\u52a1\u7b97\u662f\u4f18\u70b9\u3002\u4f46\u662f\u53e6\u4e00\u65b9\u9762\u6211\u60f3\u5230\u7684\u4e00\u4e2a\u95ee\u9898\u662f\uff0c\u56e0\u4e3a sql \u8bfb\u5199\u8fdc\u6162\u4e8e redis\uff0c\u6240\u4ee5\u5982\u679c\u88ab\u6076\u610f\u653b\u51fb sql \u538b\u529b\u4f1a\u5f88\u5bb9\u6613\u5403\u6ee1\u3002\u6bd4\u5982\u4e00\u822c nginx \u90e8\u7f72\u7684\u65f6\u5019\u53ef\u80fd\u9650\u5236\u6bd4\u5982\u5355 IP \u6bcf\u5206\u949f\u6700\u5927\u8bbf\u95ee 300q\uff0c\u90a3\u5982\u679c\u9047\u5230\u4e86\u574f\u4e1c\u897f\uff0c\u53ea\u9700\u8981\u51e0\u4e2a IP \u5c31\u53ef\u4ee5\u8ba9 sql \u8bfb\u5199\u4ea7\u751f\u660e\u663e\u8fdf\u6ede\uff0c\u4f3c\u4e4e\u4e5f\u4e0d\u592a\u59a5\uff1f<\/p>\n<p>==============================<\/p>\n<p>\u597d\u5947\u751f\u4ea7\u4e0a\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\uff0c\u6709\u6ca1\u6709\u4ec0\u4e48\u53d6\u5de7\u7684\u65b9\u5f0f\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3804855\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 594duck <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             API GW \u7684\u9650\u6d41\u529f\u80fd\u7c7b\u4f3c<\/p>\n<p>\u7b80\u5355\u70b9\u5c31\u662f\u628a\u7528\u6237\u91cd\u8bd5\u5bc6\u7801\u6b21\u6570\u72b6\u6001\u8bb0\u5728\u4e00\u4e2a Redis \u7c7b\u7684\u5185\u5b58\u6570\u636e\u5e93\u4e2d\uff0c\u5c1d\u8bd5\u4e00\u6b21+1\uff0c\u8d85\u8fc7\u4f60\u7684\u8bbe\u8ba1\u503c\u5c31\u505c\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3804856\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 594duck <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5173\u4e8e 2 \u7684\u7ea0\u7ed3\uff0c\u5f88\u5947\u602a\uff0c\u591a\u4e00\u4e2a Redis \u53c8\u4e0d\u591a\u4ec0\u4e48\uff0c\u5982\u679c\u7528\u4e91\u5c31\u7528\u4e91\u670d\u52a1\u3002\u5982\u679c\u4e0d\u7528\u4e91\uff0c\u8bc4\u4f30\u4e00\u4e0b\u4f60\u7684\u91cf\uff0c\u53ea\u8981\u5355\u673a\u4e0d\u8fc7 32G \u5185\u5b58\uff0c\u968f\u4fbf\u641e\uff0c\u53cd\u6b63\u8fd9\u4e2a Redis \u91cd\u542f\u4e5f\u6ca1\u5173\u7cfb\uff0c\u7b80\u5355\u7684\u72e0\u3002<\/p>\n<p>\u8fd9\u79cd\u670d\u52a1\u653e\u6570\u636e\u5e93\uff0c\u5176\u707e\u96be\u6027\u548c\u56fe\u7247\u6821\u9a8c\u7801\u653e\u6570\u636e\u5e93\u4e00\u6837\uff0c\u4eba\u8bbf\u95ee\u4e00\u591a\u5c31\u62d6\u6b7b\u6570\u636e\u5e93\u4e86\uff0c\u4e0d\u503c \u5f53\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3804857\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : goodboy95 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90fd\u90e8\u7f72\u96c6\u7fa4\u4e86\u8fd8\u6ca1\u4e0a redis \u591a\u591a\u5c11\u5c11\u6709\u70b9\u5947\u602a\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3804858\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : loliordie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Redis \u554a \u8bbe\u7f6e\u4e2a\u8d85\u65f6\u65f6\u95f4\u5b8c\u4e8b \u60f3\u4e0d\u5230\u600e\u4e48\u7ef4\u62a4\u9ebb\u70e6\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3804859\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Wincer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u90e8\u95e8\u76ee\u524d\u662f\u653e redis\uff0c\u6f0f\u6597\u9650\u6d41\u3002key \u53ef\u4ee5\u4f7f\u7528 IP \u6216\u8005\u767b\u5f55\u7528\u6237\u540d\uff0c\u9519\u8bef\u8d85\u8fc7 3 \u6b21\u4e4b\u540e\u89e6\u53d1\u9a8c\u8bc1\u7801\uff0c\u76f4\u5230\u767b\u5f55\u6210\u529f\u4e4b\u540e\u624d\u89e3\u9664\u672c\u8d26\u53f7\u7684\u9a8c\u8bc1\u7801\u3002\u53e6\u5916\u8fd9\u4e2a Redis \u5e76\u4e0d\u4f1a\u589e\u52a0\u7cfb\u7edf\u7684\u590d\u6742\u6027\uff0c\u8fd9\u4e2a\u9a8c\u8bc1\u7cfb\u7edf\u5e94\u8be5\u662f\u65e0\u72b6\u6001\u7684\uff0c\u4e0d\u9700\u8981\u6301\u4e45\u5316\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3804860\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leoskey <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u767b\u5f55\u5bc6\u7801\u7edf\u4e00\u5728\u767b\u5f55\u7cfb\u7edf\u6240\u5c5e\u9a8c\u8bc1\uff0c\u652f\u4ed8\u5bc6\u7801\u7edf\u4e00\u5728\u652f\u4ed8\u5bc6\u7801\u6240\u5c5e\u7cfb\u7edf\u9a8c\u8bc1\u3002\u5176\u5b83\u7cfb\u7edf\u60f3\u8981\u9a8c\u8bc1\u5c31\u628a\u53c2\u6570\u4f20\u7ed9\u767b\u5f55 \/\u652f\u4ed8\u5bc6\u7801\u6240\u5c5e\u7cfb\u7edf\u53bb\u9a8c\u8bc1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3804861\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vate32 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u77e5\u9053\u524d\u7aef\u9875\u9762\u80fd\u4e0d\u80fd\u5b58\u8fd9\u4e2a\u8ba1\u6570\uff0c\u4e4b\u524d\u770b\u67d0\u4e9b\u7f51\u7ad9\u9875\u9762\u663e\u793a\u5bc6\u7801\u8f93\u5165\u6b21\u6570\u8fbe\u5230\u4e0a\u9650\uff0c\u7136\u540e\u5728\u624b\u673a\u4e0a\u8bd5\u8fd8\u80fd\u8f93\u5165\uff0c\u5f88\u60ca\u5947\uff0c\u7136\u540e\u7528\u7535\u8111\u4e0a\u5f00\u65e0\u75d5\u6d4f\u89c8\u4e5f\u53ef\u4ee5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6bcf\u5206\u949f\u5141\u8bb8\u5c1d\u8bd5\u5bc6\u7801\u6700\u5927\u6b21\u6570\uff0c\u7684\u6700\u4f73&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\/173896"}],"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=173896"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/173896\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173896"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}