{"id":69458,"date":"2018-08-07T08:43:45","date_gmt":"2018-08-07T00:43:45","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=69458"},"modified":"2018-08-06T10:01:28","modified_gmt":"2018-08-06T02:01:28","slug":"hcache-sqlpad","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/hcache-sqlpad.html","title":{"rendered":"\u5982\u4f55\u67e5\u770bLinux\u5f53\u524d\u7f13\u5b58\u5b9e\u7528\u5de5\u5177"},"content":{"rendered":"
Linux\u7528\u6237\u53ef\u80fd\u7ecf\u5e38\u9047\u5230\u7684\u4e00\u4e2a\u95ee\u9898\u662f\u5185\u5b58\u5927\u90e8\u5206\u90fd\u88abBuff\u548cCache\u5360\u7528\u4e86\uff0c\u4f46\u662f\u6709\u65f6\u5019\u6211\u4eec\u60f3\u77e5\u9053\u5230\u5e95Cache\u4e86\u4e9b\u4ec0\u4e48\u5185\u5bb9\u5374\u6ca1\u6709\u4e00\u4e2a\u76f4\u89c2\u597d\u7528\u7684\u5de5\u5177\u3002\u4eca\u5929\u7ed9\u4f60\u4ecb\u7ecd\u4e00\u4e2a\u53ef\u4ee5\u67e5\u770bLinux\u5f53\u524d\u7f13\u5b58\u4e86\u54ea\u4e9b\u6587\u4ef6\u7684\u5c0f\u5de5\u5177hcache\u3002<\/p>\n
hcache\u662f\u57fa\u4e8epcstat\u7684\uff0cpcstat\u53ef\u4ee5\u67e5\u770b\u67d0\u4e2a\u6587\u4ef6\u662f\u5426\u88ab\u7f13\u5b58\u548c\u6839\u636e\u8fdb\u7a0bpid\u6765\u67e5\u770b\u90fd\u7f13\u5b58\u4e86\u54ea\u4e9b\u6587\u4ef6\u3002hcache\u5728\u5176\u57fa\u7840\u4e0a\u589e\u52a0\u4e86\u67e5\u770b\u6574\u4e2a\u64cd\u4f5c\u7cfb\u7edfCache\u548c\u6839\u636e\u4f7f\u7528Cache\u5927\u5c0f\u6392\u5e8f\u7684\u7279\u6027\u3002<\/p>\n
\u5b98\u7f51:https:\/\/github.com\/silenceshell\/hcache<\/p>\n
hcache\u662f\u4f7f\u7528GO\u5f00\u53d1\u7684\uff0c\u5b89\u88c5\u975e\u5e38\u7b80\u5355\uff0c\u5f00\u7bb1\u5373\u7528\u3002<\/p>\n
<\/p>\n
\u67e5\u770b\u4f7f\u7528Cache\u6700\u591a\u76843\u4e2a\u8fdb\u7a0b\u3002<\/p>\n
<\/p>\n
\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u663e\u793acache\u6587\u4ef6\u7684\u5168\u8def\u5f84\uff0c\u4f1a\u6bd4\u8f83\u957f\u3002\u53ef\u4ee5\u4f7f\u7528--bname\u9009\u9879\u6765\u4ec5\u663e\u793a\u6587\u4ef6\u540d\u3002<\/p>\n
<\/p>\n
\u67e5\u770b\u6307\u5b9a\u8fdb\u7a0b\u7684Cache\u4f7f\u7528\u60c5\u51b5\u3002<\/p>\n
<\/p>\n
\u53e6\u5916\u8fd8\u53ef\u4f7f\u7528\u6307\u5b9a\u683c\u5f0f\u8f93\u51fa\uff0c\u6bd4\u5982\uff1aJSON\u3001\u7eaf\u6587\u672c\u3002\u66f4\u591a\u4f7f\u7528\u65b9\u6cd5\u53ef\u53c2\u8003hcache -h\u3002<\/p>\n
SQLPad\u662f\u4e00\u4e2a\u57fa\u4e8eNodejs\u5f00\u53d1\u7684\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u8fd0\u884cSQL\u67e5\u8be2\u5e76\u5bf9\u7ed3\u679c\u8fdb\u884c\u53ef\u89c6\u5316\u5c55\u793a\u5de5\u5177\u3002SQLPad\u652f\u6301\u7684\u6570\u636e\u5e93\u975e\u5e38\u591a\uff0c\u6bd4\u5982\uff1aMySQL, Postgres, SQL Server, Vertica, Crate, Presto\u7b49\u3002<\/p>\n
\u5b98\u7f51\uff1ahttp:\/\/rickbergfalk.github.io\/sqlpad\/<\/p>\n
\u9ed8\u8ba4\u8f6f\u4ef6\u6e90\u91ccnodejs\u7248\u672c\u6bd4\u8f83\u8001\uff0c\u662f4.x\u7684\u3002SQLPad\u6700\u4f4e\u9700\u89816.x\u7684\uff0c\u4f7f\u7528\u5b98\u65b9\u6e90\u5b89\u88c56.x\u7684nodejs\u3002<\/p>\n
Debian\/Ubuntu<\/p>\n
<\/p>\n
RHEL\/CentOS<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
\u542f\u52a8\u540e\u4f1a\u663e\u793a\u51fa\u8bbf\u95ee\u5730\u5740\uff0cSQLPad\u9ed8\u8ba4\u7ed1\u5b9a\u57280.0.0.0:80\u3002\u5982\u679c\u60f3\u66f4\u6539\u53ef\u4ee5\u6307\u5b9a--ip\u548c--port\u53c2\u6570\u3002<\/p>\n
\u7528\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/ip:80\u9875\u9762\uff0c\u6ce8\u518c\u8d26\u53f7\u540e\u4fbf\u53ef\u4f7f\u7528\u3002<\/p>\n
<\/p>\n
\u5efa\u7acb\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5<\/p>\n
<\/p>\n
SQLPad\u652f\u6301\u5bf9\u8868\u540d\u548c\u5b57\u6bb5\u540d\u7684\u81ea\u52a8\u63d0\u793a<\/p>\n
<\/p>\n
<\/p>\n
\u76f4\u63a5\u6839\u636e\u67e5\u8be2\u7ed3\u679c\u751f\u6210\u5404\u79cd\u56fe\u8868<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
SQLPad\u529f\u80fd\u8fd8\u662f\u5f88\u5f3a\u5927\u7684\uff0c\u8fd8\u53ef\u4ee5\u5c06\u67e5\u8be2\u7ed3\u67e5\u5bfc\u51faCVS\u548cExcel\u683c\u5f0f\u7b49\uff0c\u5feb\u548c\u4f60\u7684\u5c0f\u4f19\u4f34\u7528\u8d77\u6765\u5427\uff01<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/18519.html<\/a><\/p>\n