{"id":201344,"date":"2025-05-10T10:40:01","date_gmt":"2025-05-10T02:40:01","guid":{"rendered":"https:\/\/server.hk\/cnblog\/201344\/"},"modified":"2025-05-10T10:40:01","modified_gmt":"2025-05-10T02:40:01","slug":"%e5%ae%8c%e7%be%8e%e8%a7%a3%e5%86%b3linux%e4%b8%8a%e5%90%af%e5%8a%a8redis%e5%90%8e%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e6%9c%aa%e7%94%9f%e6%95%88%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/201344\/","title":{"rendered":"\u5b8c\u7f8e\u89e3\u51b3linux\u4e0a\u542f\u52a8redis\u540e\u914d\u7f6e\u6587\u4ef6\u672a\u751f\u6548\u7684\u95ee\u9898"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>\u5b8c\u7f8e\u89e3\u51b3linux\u4e0a\u542f\u52a8redis\u540e\u914d\u7f6e\u6587\u4ef6\u672a\u751f\u6548\u7684\u95ee\u9898<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u5411\u5927\u5bb6\u4ecb\u7ecd\u300a\u5b8c\u7f8e\u89e3\u51b3linux\u4e0a\u542f\u52a8redis\u540e\u914d\u7f6e\u6587\u4ef6\u672a\u751f\u6548\u7684\u95ee\u9898\u300b\uff0c\u4e3b\u8981\u5305\u62ec\u6587\u4ef6\u3001\u914d\u7f6e\u3001\u4e0d\u751f\u6548\u3001linuxredis\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\u3002<\/p>\n<p>\u4fee\u6539redis.conf\u540e\uff0c\u91cd\u542fredis\uff0c\u53d1\u73b0\u4fee\u6539\u7684\u914d\u7f6e\u672a\u751f\u6548\uff0c\u539f\u6765\u662f\u9700\u8981\u5728\u542f\u52a8redis\u7684\u65f6\u5019\u5728\u547d\u4ee4\u4e2d\u52a0\u4e0a\u914d\u7f6e\u6587\u4ef6\uff0c\u547d\u4ee4\u5982\u4e0b<\/p>\n<pre>\n.\/redis-server \/usr\/local\/redis-3.2.8\/redis.conf &amp;<\/pre>\n<p><span style=\"color: #ff0000\"><strong>\u4ed4\u7ec6\u9605\u8bfb\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u5f00\u5934\u770b\u5230\u6709\u8fd9\u6837\u7684\u63cf\u8ff0<\/strong><\/span><\/p>\n<pre>\n# Note that in order to read the configuration file, Redis must be\n# started with the file path as first argument:\n#\n# .\/redis-server \/path\/to\/redis.conf<\/pre>\n<p><strong>\u6240\u4ee5\u95ee\u9898\u5c31\u5728\u8fd9\u91cc\u3002<\/strong><\/p>\n<p>\u4ee5\u4e0a\u8fd9\u7bc7\u5b8c\u7f8e\u89e3\u51b3linux\u4e0a\u542f\u52a8redis\u540e\u914d\u7f6e\u6587\u4ef6\u672a\u751f\u6548\u7684\u95ee\u9898\u5c31\u662f\u5c0f\u7f16\u5206\u4eab\u7ed9\u5927\u5bb6\u7684\u5168\u90e8\u5185\u5bb9\u4e86\uff0c\u5e0c\u671b\u80fd\u7ed9\u5927\u5bb6\u4e00\u4e2a\u53c2\u8003\uff0c\u4e5f\u5e0c\u671b\u5927\u5bb6\u591a\u591a\u652f\u6301golang\u5b66\u4e60\u7f51\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b8c\u7f8e\u89e3\u51b3linux\u4e0a\u542f\u52a8redi&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-201344","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=201344"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201344\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=201344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=201344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=201344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}