{"id":208335,"date":"2020-11-28T05:15:21","date_gmt":"2020-11-27T21:15:21","guid":{"rendered":"http:\/\/4563.org\/?p=208335"},"modified":"2020-11-28T05:15:21","modified_gmt":"2020-11-27T21:15:21","slug":"%e5%ba%94%e8%af%a5%e6%98%af%e6%9c%80%e5%bf%ab%e7%9a%84%e8%a3%a4%e5%ad%90%e5%af%bc%e5%85%a5%e6%96%b9%e6%a1%88%e4%ba%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=208335","title":{"rendered":"\u5e94\u8be5\u662f\u6700\u5feb\u7684\u88e4\u5b50\u5bfc\u5165\u65b9\u6848\u4e86"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>tkn<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5e94\u8be5\u662f\u6700\u5feb\u7684\u88e4\u5b50\u5bfc\u5165\u65b9\u6848\u4e86<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 tkn \u4e8e 2020-11-27 08:31 \u7f16\u8f91 <\/p>\n<p> \u91cd\u8981<\/p>\n<p>  \u8bf7\u4f7f\u7528 MySQL8.0 \u4ee5\u4e0b\uff0c\u5426\u5219 MyISAM \u5f15\u64ce\u4e0d\u652f\u6301\u5206\u533a\uff0c\u5982\u679c\u7528 Innodb \u5f15\u64ce\uff0c\u5bfc\u5165\u901f\u5ea6\u548c\u5efa\u7d22\u5f15\u901f\u5ea6\u5c06\u5927\u6253\u6298\u6263\uff0c\u6211\u4f7f\u7528\u7684\u662f MySQL5.7\u3002<\/p>\n<p>  \u4e0b\u8f7d mysql shell \u5de5\u5177<br \/>  mysql shell \u4e0b\u8f7d\u5730\u5740: https:\/\/downloads.mysql.com\/archives\/shell\/ <\/p>\n<p>  \u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>  my.ini \u914d\u7f6e\u6587\u4ef6\u6dfb\u52a0\u4ee5\u4e0b\u4e24\u884c<\/p>\n<p>  secure_file_priv=&#8221;<br \/>  local_infile=on<\/p>\n<p>  \u540c\u65f6\u5982\u679c\u539f\u5148\u5df2\u6709\u4ee5\u4e0b\u4e24\u884c\uff0c\u8bf7\u5148\u6ce8\u91ca\u6389(\u5173\u95ed\u4e8c\u8fdb\u5236\u65e5\u5fd7\uff0c\u52a0\u5feb\u5bfc\u5165\u901f\u5ea6)<\/p>\n<p>  #binlog_format=mixed<br \/>  #log-bin=binlog<\/p>\n<p>  \u5efa\u7acb\u6570\u636e\u5e93\u548c\u8868 <\/p>\n<p>  #\u5efa\u7acb\u6570\u636e\u5e93<br \/>  CREATE DATABASE kuzi;<\/p>\n<p>  use kuzi;<\/p>\n<p>  #\u5efa weibo \u8868\uff0c\u5206 16 \u4e2a\u533a<br \/>  CREATE TABLE `weibos`(<br \/>  `phone` BIGINT(20) DEFAULT NULL,`uid` BIGINT(20) DEFAULT NULL<br \/>  ) ENGINE=MyISAM DEFAULT CHARSET=ASCII PARTITION BY HASH(uid) PARTITIONS 16;<\/p>\n<p>  #\u5efa qq \u8868\uff0c\u5206 26 \u4e2a\u533a<br \/>  CREATE TABLE `qqs`(<br \/>  `qq` BIGINT(20) DEFAULT NULL,`phone` BIGINT(20) DEFAULT NULL<br \/>  ) ENGINE=MyISAM DEFAULT CHARSET=ASCII PARTITION BY HASH(qq) PARTITIONS 26;<\/p>\n<p>  \u8fd0\u884c mysqlsh \u5bfc\u5165\u6570\u636e<\/p>\n<p>  cmd \u547d\u4ee4\u884c\u8fdb\u5165 mysql shell \u7684 bin \u76ee\u5f55\u8fd0\u884cmysqlsh.exe\uff0c\u63a5\u7740\u8f93\u5165\u5982\u4e0b\u547d\u4ee4<\/p>\n<p>  #\u8fde\u63a5\u6570\u636e\u5e93\uff0c\u4f1a\u63d0\u793a\u8f93\u5165\u5bc6\u7801<br \/>  c root@127.0.0.1:3306<\/p>\n<p>  #\u9009\u62e9\u521a\u521a\u5efa\u7684\u5e93<br \/>  use kuzi<\/p>\n<p>  #\u5bfc\u5165 WB \u6570\u636e\uff0c\u628a D:\/0\/weibo_2019_5e.txt \u4fee\u6539\u6210\u4f60\u7684\u6587\u4ef6\u8def\u5f84<br \/>  util.importTable(&quot;D:\/0\/weibo_2019_5e.txt&quot;,{&quot;schema&quot;:&quot;kuzi&quot;,&quot;table&quot;:&quot;weibos&quot;,&quot;fieldsTerminatedBy&quot;:&quot;t&quot;,&quot;showProgress&quot;:true,&quot;threads&quot;:8,bytesPerChunk: &quot;1G&quot;,maxRate: &quot;2G&quot;});<\/p>\n<p>  #\u4e0a\u9762\u6267\u884c\u5b8c\u540e\uff0c\u518d\u5bfc\u5165 QQ \u6570\u636e<br \/>  util.importTable(&quot;D:\/0\/qq_6.9_8e_update.txt&quot;,{&quot;schema&quot;:&quot;kuzi&quot;,&quot;table&quot;:&quot;qqs&quot;,&quot;fieldsTerminatedBy&quot;:&quot;&#8212;-&quot;,&quot;showProgress&quot;:true,&quot;threads&quot;:8,bytesPerChunk: &quot;1G&quot;,maxRate: &quot;2G&quot;});<\/p>\n<p>  \u8be5\u65b9\u6cd5\u5bfc\u5165\u5e94\u8be5\u662f\u6700\u5feb\u7684\u4e86\uff0c\u6211\u7b14\u8bb0\u672c\u673a\u68b0\u786c\u76d8\u5bfc\u5165\u4e24\u4e2a\u6570\u636e\uff0cWB \u7528\u4e86 5 \u5206\u949f\uff0cQQ \u7528\u4e86 7 \u5206\u949f<\/p>\n<p>  \u5efa\u7acb\u7d22\u5f15<\/p>\n<p>  use kuzi;<\/p>\n<p>  # WB \u7684\u7d22\u5f15<br \/>  ALTER TABLE `kuzi`.`weibos`ADD INDEX uid_phone (uid,phone);<\/p>\n<p>  # QQ \u7684\u7d22\u5f15<br \/>  ALTER TABLE `kuzi`.`qqs`ADD INDEX qq_phone (qq,phone);<\/p>\n<p>  \u8fd9\u4e00\u6b65\u5c31\u6bd4\u8f83\u4e45\u4e86\uff0cWB\u8017\u65f6 45 \u5206\u949f\uff0cQQ \u8017\u65f6 90 \u5206\u949f<\/p>\n<p>  \u67e5\u8be2<\/p>\n<p>  \u7528 go \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u7a0b\u5e8f\uff0c\u6e90\u7801\u5df2\u7ecf\u653e https:\/\/github.com\/JuchiaLu\/kuzi\uff0c\u61d2\u5f97\u7f16\u8bd1\u7684\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u7f16\u8bd1\u597d\u7684\u8fd0\u884c\uff0c\u4fee\u6539\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6\u540e\uff0ccmd \u4e0b\u76f4\u63a5\u6267\u884c\u5373\u53ef<\/p>\n<p>  #\u6570\u636e\u5e93\u7c7b\u578b<br \/>  db_type=mysql<\/p>\n<p>  #\u6570\u636e\u5e93\u8fde\u63a5\u5730\u5740\u548c\u8d26\u6237\u5bc6\u7801<br \/>  db_url=root:root@tcp(127.0.0.1:3306)\/kuzi?charset=utf8mb4&amp;parseTime=True&amp;loc=Local<\/p>\n<p>  #http\u76d1\u542c\u7aef\u53e3<br \/>  listen_port=8080<\/p>\n<p>  \u6267\u884c\u7a0b\u5e8f\u540e\u6d4f\u89c8\u5668\u6253\u5f00\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u7528\u754c\u9762\u76f4\u63a5\u8bbf\u95ee\u63a5\u53e3\uff0c\u8fd4\u56de Json<\/p>\n<p>  QQ\uff1ahttp:\/\/127.0.0.1:8080\/v1\/qq?qq=10001<\/p>\n<p>  WB\uff1ahttp:\/\/127.0.0.1:8080\/v1\/weibo?uid=10001<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>tkn<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 tkn \u4e8e 2020-11-27 22:38 \u7f16\u8f91 <\/p>\n<p> xuhaoa \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-11-27 22:31<br \/>  \u653e\u5728\u6590\u8bafN1\u4e0a\u7684\uff0carm\uff0c\u8fd8\u6ca1\u505a\u7d22\u5f15\uff0c20\u79d2\u5de6\u53f3\uff0c\u662f\u8d85\u8fc75\u79d2\u81ea\u52a8\u505c\u6b62\u54cd\u5e94\u4e86\u5417\u3002 &#8230;<\/p>\n<p>  \u662f\u7684\uff0c \u524d\u7aef\u8d85\u65f6\u8bbe\u7f6e 5 \u79d2\uff0c\u524d\u7aef\u6e90\u7801\u624d\u51e0\u884c\u5c31\u4e0d\u653e\u4e86\uff0c\u60f3\u6539\u5728\u6253\u5f00 app.75f59f37.js \u641c\u7d22 timeout:5e3 \u6539\u5c31\u884c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lj800827<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5361\u5728\u5efa\u7acb\u7d22\u5f15\u8fd9\u6b65\u4e86\uff0c\u8001\u54e5\uff0c\u548b\u64cd\u4f5c\u554a<br \/>  https:\/\/pic.downk.cc\/item\/5fc0e85415e77190847053ac.png\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>feiyu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5b66\u4e60\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ccj330<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed9\u5927\u4f6c\u7aef\u8336:)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>KACA7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f69\u670d\u4e86\u3002\u4e0d\u8fc7\u82b1\u8d39\u65f6\u95f4\u592a\u4e45\u4e86\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wushen168<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u554a\u8fd9\uff0c\u592a\u5feb\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>qingwei<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u4f18\u79c0\uff0c\u5b66\u4e60\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>qinghe187100<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t:L\u5b66\u4e0d\u4f1a\u600e\u4e48\u529e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5355\u9614<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c \u4e0d\u6765\u4e2awin\u7248\u672c\u7684\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>qqlikeho<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u5c31\u5f88\u725b\u903c\u4e86 :lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>tkn<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5355\u9614 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-11-27 08:07<br \/>  \u5927\u4f6c \u4e0d\u6765\u4e2awin\u7248\u672c\u7684\u5417\uff1f<\/p>\n<p> \u8fd9\u5c31\u662f win \u7248\u672c\u7684\u554a\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>tkn \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u5e94\u8be5\u662f\u6700\u5feb&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\/208335"}],"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=208335"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/208335\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208335"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}