{"id":760,"date":"2017-10-13T10:21:40","date_gmt":"2017-10-13T02:21:40","guid":{"rendered":"http:\/\/www.xiaobo.li\/?p=760"},"modified":"2017-10-13T10:21:40","modified_gmt":"2017-10-13T02:21:40","slug":"memcache-start-parameters","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/760","title":{"rendered":"memcache start parameters"},"content":{"rendered":"<p><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u3010\u9ed1\u4f53\u5b57\u7684\u53c2\u6570\u8f83\u4e3a\u5e38\u7528\u3011<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-p&lt;num&gt;<\/strong><\/span><\/td>\n<td style=\"height: 32px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u76d1\u542c\u7684TCP\u7aef\u53e3\uff08\u9ed8\u8ba4\uff1a11211\uff09<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-U&lt;num&gt;<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">UDP\u76d1\u542c\u7aef\u53e3\uff08\u9ed8\u8ba4\uff1a11211 0\u5173\u95ed\uff09<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-d<\/strong><\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u4ee5\u5b88\u62a4\u8fdb\u7a0b\u65b9\u5f0f\u8fd0\u884c<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-u&lt;username&gt;<\/strong><\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u6307\u5b9a\u7528\u6237\u8fd0\u884c<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-m&lt;num&gt;.<\/strong><\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u6700\u5927\u5185\u5b58\u4f7f\u7528\uff0c\u5355\u4f4dMB\u3002\u9ed8\u8ba464MB<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-c&lt;num&gt;<\/strong><\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u6700\u5927\u540c\u65f6\u8fde\u63a5\u6570\uff0c\u9ed8\u8ba4\u662f1024<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-v<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u8f93\u51fa\u8b66\u544a\u548c\u9519\u8bef\u6d88\u606f<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-vv<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u6253\u5370\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u548c\u8fd4\u56de\u4fe1\u606f<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-h<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u5e2e\u52a9\u4fe1\u606f<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-l&lt;ip&gt;<\/strong><\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u7ed1\u5b9a\u5730\u5740\uff08\u9ed8\u8ba4\u4efb\u4f55ip\u5730\u5740\u90fd\u53ef\u4ee5\u8bbf\u95ee\uff09<\/span><\/td>\n<\/tr>\n<tr style=\"height: 98px;\">\n<td style=\"height: 98px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-P&lt;file&gt;<\/strong><\/span><\/td>\n<td style=\"height: 98px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u5c06PID\u4fdd\u5b58\u5728file\u6587\u4ef6<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-i<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u6253\u5370memcached\u548clibevent\u7248\u6743\u4fe1\u606f<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-M<\/strong><\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u7981\u6b62LRU\u7b56\u7565\uff0c\u5185\u5b58\u8017\u5c3d\u65f6\u8fd4\u56de\u9519\u8bef<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>-f&lt;factor&gt;<\/strong><\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u589e\u957f\u56e0\u5b50\uff0c\u9ed8\u8ba41.25<\/span><\/td>\n<\/tr>\n<tr style=\"height: 98px;\">\n<td style=\"height: 98px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-n&lt;bytes&gt;<\/span><\/td>\n<td style=\"height: 98px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u521d\u59cbchunk=key+suffix+value+32\u7ed3\u6784\u4f53\uff0c\u9ed8\u8ba448\u5b57\u8282<\/span><\/td>\n<\/tr>\n<tr style=\"height: 98px;\">\n<td style=\"height: 98px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-L<\/span><\/td>\n<td style=\"height: 98px;\" valign=\"top\" width=\"471\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u542f\u7528\u5927\u5185\u5b58\u9875\uff0c\u53ef\u4ee5\u964d\u4f4e\u5185\u5b58\u6d6a\u8d39\uff0c\u6539\u8fdb\u6027\u80fd<\/span><\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-l<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\">\n<p align=\"left\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u8c03\u6574\u5206\u914dslab\u9875\u7684\u5927\u5c0f\uff0c\u9ed8\u8ba41M\uff0c\u6700\u5c0f1k\u5230128M<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-t&lt;num&gt;<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\">\n<p align=\"left\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u7ebf\u7a0b\u6570\uff0c\u9ed8\u8ba44\u3002\u7531\u4e8ememcached\u91c7\u7528NIO\uff0c\u6240\u4ee5\u66f4\u591a\u7ebf\u7a0b\u6ca1\u6709\u592a\u591a\u4f5c\u7528<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-R<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\">\n<p align=\"left\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u6bcf\u4e2aevent\u8fde\u63a5\u6700\u5927\u5e76\u53d1\u6570\uff0c\u9ed8\u8ba420<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-C<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\">\n<p align=\"left\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u7981\u7528CAS\u547d\u4ee4\uff08\u53ef\u4ee5\u7981\u6b62\u7248\u672c\u8ba1\u6570\uff0c\u51cf\u5c11\u5f00\u9500\uff09<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-b<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\">\n<p align=\"left\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">Set the backlog queue limit (default: 1024)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-B<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\">\n<p align=\"left\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">Binding protocol-one of ascii, binary or auto (default)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-s&lt;file&gt;<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\">\n<p align=\"left\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">UNIX socket<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"height: 56px;\" valign=\"top\" width=\"97\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">-a&lt;mask&gt;<\/span><\/td>\n<td style=\"height: 56px;\" valign=\"top\" width=\"471\">\n<p align=\"left\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">access mask for UNIX socket, in octal (default: 0700)<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>5\u3001Memcache\u6307\u4ee4\u6c47\u603b<\/strong><\/span><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u6307\u4ee4<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u63cf\u8ff0<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u4f8b\u5b50<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">get key<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u8fd4\u56de\u5bf9\u5e94\u7684value<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">get mykey<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">set key \u6807\u8bc6\u7b26 \u6709\u6548\u65f6\u95f4 \u957f\u5ea6<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">key\u4e0d\u5b58\u5728\u6dfb\u52a0\uff0c\u5b58\u5728\u66f4\u65b0<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">set mykey 0 60 5<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">add key\u6807\u8bc6\u7b26 \u6709\u6548\u65f6\u95f4 \u957f\u5ea6<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u6dfb\u52a0key-value\u503c\uff0c\u8fd4\u56destored\/not_stored<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">add mykey 0 60 5<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">replace key\u6807\u8bc6\u7b26 \u6709\u6548\u65f6\u95f4 \u957f\u5ea6<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u66ff\u6362key\u4e2d\u7684value\uff0ckey\u5b58\u5728\u6210\u529f\u8fd4\u56destored\uff0ckey\u4e0d\u5b58\u5728\u5931\u8d25\u8fd4\u56denot_stored<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">replace mykey 0 60 5<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">append key\u6807\u8bc6\u7b26 \u6709\u6548\u65f6\u95f4 \u957f\u5ea6<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u8ffd\u52a0key\u4e2d\u7684value\u503c\uff0c\u6210\u529f\u8fd4\u56destored\uff0c\u5931\u8d25\u8fd4\u56denot_stored<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">append mykey 0 60 5<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">prepend key\u6807\u8bc6\u7b26 \u6709\u6548\u65f6\u95f4 \u957f\u5ea6<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u524d\u7f6e\u8ffd\u52a0key\u4e2d\u7684value\u503c\uff0c\u6210\u529f\u8fd4\u56destored\uff0c\u5931\u8d25\u8fd4\u56denot_stored<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">prepend mykey 0 60 5<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">incr key num<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u7ed9key\u4e2d\u7684value\u589e\u52a0num\u3002\u82e5key\u4e2d\u4e0d\u662f\u6570\u5b57\uff0c\u5219\u5c06\u4f7f\u7528num\u66ff\u6362value\u503c\u3002\u8fd4\u56de\u589e\u52a0\u540e\u7684value<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">Incre mykey 1<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">decr<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u540c\u4e0a<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u540c\u4e0a<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">delete key [key2\u2026]<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u5220\u9664\u4e00\u4e2a\u6216\u8005\u591a\u4e2akey-value\u3002\u6210\u529f\u5220\u9664\u8fd4\u56dedeleted\uff0c\u4e0d\u5b58\u5728\u5931\u8d25\u5219\u8fd4\u56denot_found<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">delete mykey<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">flush_all [timeount]<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u6e05\u9664\u6240\u6709[timeout\u65f6\u95f4\u5185\u7684]\u952e\u503c\uff0c\u4f46\u4e0d\u4f1a\u5220\u9664items\uff0c\u6240\u4ee5memcache\u4f9d\u65e7\u5360\u7528\u5185\u5b58<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">flush_all 20<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">version<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u8fd4\u56de\u7248\u672c\u53f7<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">version<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">verbosity<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u65e5\u5fd7\u7ea7\u522b<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">verbosity<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">quit<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u5173\u95ed\u8fde\u63a5<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">quit<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u8fd4\u56deMemcache\u901a\u7528\u7edf\u8ba1\u4fe1\u606f<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats slabs<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u8fd4\u56deMemcache\u8fd0\u884c\u671f\u95f4\u521b\u5efa\u7684\u6bcf\u4e2aslab\u7684\u4fe1\u606f<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats slabs<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats items<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u8fd4\u56de\u5404\u4e2aslab\u4e2ditem\u7684\u4e2a\u6570\uff0c\u548c\u6700\u8001\u7684item\u79d2\u6570<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats items<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats malloc<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u663e\u793a\u5185\u5b58\u5206\u914d\u6570\u636e<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats malloc<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats detail [on|off|dump]<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#on\uff1a\u6253\u5f00\u8be6\u7ec6\u64cd\u4f5c\u8bb0\u5f55\u3001off\uff1a\u5173\u95ed\u8be6\u7ec6\u64cd\u4f5c\u8bb0\u5f55\u3001dump\u663e\u793a\u8be6\u7ec6\u64cd\u4f5c\u8bb0\u5f55\uff08\u6bcf\u4e00\u4e2a\u952e\u7684get\u3001set\u3001hit\u3001del\u7684\u6b21\u6570\uff09<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats detail on<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats detail off<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats detail dump<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats cachedump slab_id limit_num<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u663e\u793aslab_id\u4e2d\u524dlimit_num\u4e2akey<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats cachedump 1 2<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats reset<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u6e05\u7a7a\u7edf\u8ba1\u6570\u636e<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats reset<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats settings<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u67e5\u770b\u914d\u7f6e\u8bbe\u7f6e<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats settings<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">stats sizes<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">#\u5c55\u793a\u4e86\u56fa\u5b9achunk\u5927\u5c0f\u4e2d\u7684items\u7684\u6570\u91cf<\/span><\/td>\n<td valign=\"top\" width=\"189\"><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">Stats sizes<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\">\u6ce8\u610f\uff1a\u6807\u8bc6\u7b26\uff1a\u4e00\u4e2a\u5341\u516d\u8fdb\u5236\u65e0\u7b26\u53f7\u7684\u6574\u6570\uff08\u4ee5\u5341\u8fdb\u5236\u6765\u8868\u793a\uff09\uff0c\u9700\u548c\u6570\u636e\u4e00\u8d77\u5b58\u50a8\uff0cget\u7684\u65f6\u5019\u4e00\u8d77\u8fd4\u56de<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u9ed1\u4f53\u5b57\u7684\u53c2\u6570\u8f83\u4e3a\u5e38\u7528\u3011 -p&lt;num&gt; \u76d1\u542c\u7684TCP\u7aef\u53e3\uff08\u9ed8\u8ba4\uff1a1 &hellip; <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/760\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[282],"tags":[181,36],"class_list":["post-760","post","type-post","status-publish","format-standard","hentry","category-cache","tag-memcache","tag-memcached"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=760"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/760\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}