{"id":201290,"date":"2025-05-10T10:00:31","date_gmt":"2025-05-10T02:00:31","guid":{"rendered":"https:\/\/server.hk\/cnblog\/201290\/"},"modified":"2025-05-10T10:00:31","modified_gmt":"2025-05-10T02:00:31","slug":"redis%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b%e5%9b%be%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/201290\/","title":{"rendered":"Redis\u5b89\u88c5\u6559\u7a0b\u56fe\u89e3"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>Redis\u5b89\u88c5\u6559\u7a0b\u56fe\u89e3<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u4e3b\u8981\u662f\u7ed3\u5408\u6211\u4e4b\u524d\u9762\u8bd5\u7684\u5404\u79cd\u7ecf\u5386\u548c\u5b9e\u6218\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u95ee\u9898\u89e3\u51b3\u7ecf\u9a8c\u6574\u7406\u7684\uff0c\u5e0c\u671b\u8fd9\u7bc7\u300aRedis\u5b89\u88c5\u6559\u7a0b\u56fe\u89e3\u300b\u5bf9\u4f60\u6709\u5f88\u5927\u5e2e\u52a9\uff01\u6b22\u8fce\u6536\u85cf\uff0c\u5206\u4eab\u7ed9\u66f4\u591a\u7684\u9700\u8981\u7684\u670b\u53cb\u5b66\u4e60~<\/p>\n<p>redis\u662f\u6bd4\u8f83\u6d41\u884c\u7684NOSQL\u6570\u636e\u5e93\u4e4b\u4e00\uff0c\u4e0b\u9762\u6765\u8bb0\u5f55\u4e0bredis\u7684\u5b89\u88c5\u8fc7\u7a0b\uff1a<\/p>\n<p><strong>1. \u5b89\u88c5\u73af\u5883\u4ecb\u7ecd\uff1a<\/strong><br \/><strong><span style=\"color: #3366ff\">Redis\u7248\u672c\uff1a<\/span><\/strong>redis-3.0.1<br \/><strong><span style=\"color: #3366ff\">Linux\u7248\u672c\uff1a<\/span><\/strong>Red Hat Enterprise Linux Workstation release 7.0 (Maipo)<\/p>\n<p><strong>2. \u4e0b\u8f7d\u6240\u9700Redis\u6587\u4ef6<\/strong><br \/> \u5728\u4e0b\u8f7d\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u3002\u8fd9\u91cc\u4e0b\u8f7d\u7684\u662fredis-3.0.1.tar.gz<\/p>\n<p><strong>3. \u5c06\u6240\u4e0b\u8f7d\u6587\u4ef6\u653e\u5165Linux\u7cfb\u7edf\u4e2d<\/strong><br \/> \u901a\u8fc7Xmanager\u4e2dXftp\u5de5\u5177\u8fde\u63a5\u5230\u5bf9\u5e94\u673a\u5668\uff0c\u5c06redis-3.0.1.tar.gz\u653e\u5230\/redis\u6587\u4ef6\u5939\u4e0b\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20230101\/167256454663b14f429da5e.jpg?201591915466\" class=\"aligncenter\"><\/p>\n<p><strong>4. \u5c06\u538b\u7f29\u6587\u4ef6\u89e3\u538b\u5e76\u7f16\u8bd1<\/strong><br \/> \u89e3\u538b\uff1atar zxvf redis-3.0.1.tar.gz<br \/> \u7f16\u8bd1\uff1amake<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20230101\/167256454763b14f4330441.jpg?2015919154710\" class=\"aligncenter\"><\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20230101\/167256454763b14f43ac7e5.jpg?2015919154738\" class=\"aligncenter\"><\/p>\n<p><strong>5. \u542f\u52a8redis\u670d\u52a1\u5668<\/strong><br \/> \u5207\u6362\u5230src\u76ee\u5f55\u4e0b\uff0c\u5e76\u901a\u8fc7.\/redis-server \/redis\/redis-3.0.1\/redis.conf\u542f\u52a8 \u670d\u52a1\u5668<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20230101\/167256454863b14f444f9c6.jpg?201591915484\" class=\"aligncenter\"><\/p>\n<p><strong>6. \u9a8c\u8bc1\u670d\u52a1\u5668\u662f\u5426\u6210\u529f\u542f\u52a8<\/strong><br \/> \u901a\u8fc7.\/redis-cli -h 192.168.161.252 -p 6379\u8fde\u63a5\u5230\u5ba2\u6237\u7aef\uff0c\u5e76\u8bbe\u7f6e\u76f8\u5173\u503c\u6765\u9a8c\u8bc1\u670d\u52a1\u5668\u662f\u5426\u6210\u529f\u542f\u52a8<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20230101\/167256454863b14f44b922e.jpg?2015919154837\" class=\"aligncenter\"><\/p>\n<p><strong>7. \u5176\u4ed6\u76f8\u5173\u547d\u4ee4\u53c2\u8003<\/strong><br \/> \u67e5\u770bredis\u76f8\u5173\u7ebf\u7a0b\uff1aps -ef|grep redis<br \/> \u5173\u95edredis\u670d\u52a1\uff1a \/redis-cli -h 192.168.153.138 -p 6379<br \/> \u67e5\u770bredis\u4fe1\u606f\uff1a.\/redis-cli -h 192.168.153.138 -p 6379 info<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redis\u5b89\u88c5\u6559\u7a0b\u56fe\u89e3 \u6536\u85cf \u672c&#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-201290","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201290","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=201290"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201290\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=201290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=201290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=201290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}