{"id":460,"date":"2023-02-25T13:28:26","date_gmt":"2023-02-25T05:28:26","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=460"},"modified":"2023-04-29T20:58:13","modified_gmt":"2023-04-29T12:58:13","slug":"install-redis-under-windows","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/install-redis-under-windows\/","title":{"rendered":"Windows\u4e0b\u5b89\u88c5Redis"},"content":{"rendered":"<h2>Redis\u7b80\u4ecb<\/h2>\n<p>Redis\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684key-value\u5b58\u50a8\u7cfb\u7edf\u3002\u652f\u6301\u5b58\u50a8\u7684value\u7c7b\u578b\u76f8\u5bf9\u66f4\u591a\uff0c\u5305\u62ecstring(\u5b57\u7b26\u4e32)\u3001list(\u94fe\u8868)\u3001set(\u96c6\u5408)\u3001zset(sorted set \u2013\u6709\u5e8f\u96c6\u5408)\u548chashs\uff08\u54c8\u5e0c\u7c7b\u578b\uff09\u3002\u8fd9\u4e9b\u6570\u636e\u7c7b\u578b\u90fd\u652f\u6301push\/pop\u3001add\/remove\u53ca\u53d6\u4ea4\u96c6\u5e76\u96c6\u548c\u5dee\u96c6\u53ca\u66f4\u4e30\u5bcc\u7684\u64cd\u4f5c\uff0c\u800c\u4e14\u8fd9\u4e9b\u64cd\u4f5c\u90fd\u662f\u539f\u5b50\u6027\u7684\u3002\u5728\u6b64\u57fa\u7840\u4e0a\uff0credis\u652f\u6301\u5404\u79cd\u4e0d\u540c\u65b9\u5f0f\u7684\u6392\u5e8f\u3002\u4e0ememcached\u4e00\u6837\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u6548\u7387\uff0c\u6570\u636e\u90fd\u662f\u7f13\u5b58\u5728\u5185\u5b58\u4e2d\u3002\u533a\u522b\u7684\u662fredis\u4f1a\u5468\u671f\u6027\u7684\u628a\u66f4\u65b0\u7684\u6570\u636e\u5199\u5165\u78c1\u76d8\u6216\u8005\u628a\u4fee\u6539\u64cd\u4f5c\u5199\u5165\u8ffd\u52a0\u7684\u8bb0\u5f55\u6587\u4ef6\uff0c\u5e76\u4e14\u5728\u6b64\u57fa\u7840\u4e0a\u5b9e\u73b0\u4e86master-slave(\u4e3b\u4ece)\u540c\u6b65\u3002<\/p>\n<ul>\n<li>\u5b98\u65b9\u7f51\u7ad9\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/redis.io\/\">http:\/\/redis.io\/<\/a><\/li>\n<li>\u5386\u53f2\u7248\u672c\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/download.redis.io\/releases\/\">http:\/\/download.redis.io\/releases\/<\/a><\/li>\n<\/ul>\n<p><!-- more --><\/p>\n<h2>Windows\u4e0b\u5b89\u88c5Redis<\/h2>\n<p>\u5b98\u65b9\u4e0d\u63d0\u4f9bWindows\u7248\u672c\uff0c\u7b2c\u4e09\u65b9\u591a\u7248\u672c\uff1a<\/p>\n<ul>\n<li>MSOpenTech Redis(\u63a8\u8350): <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/MSOpenTech\/redis\/releases\/\">https:\/\/github.com\/MSOpenTech\/redis\/releases\/<\/a><\/li>\n<li>dmajkic Redis: <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/dmajkic\/Redis\/downloads\">https:\/\/github.com\/dmajkic\/Redis\/downloads<\/a><\/li>\n<li>ServiceStack Redis: <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/ServiceStack\/redis-windows\/tree\/master\/downloads\">https:\/\/github.com\/ServiceStack\/redis-windows\/tree\/master\/downloads<\/a><\/li>\n<\/ul>\n<h3>MSOpenTech Redis<\/h3>\n<p>\u670d\u52a1\u7aef\u8fd0\u884c\uff1a<\/p>\n<pre><code>redis-server.exe redis.windows.conf<\/code><\/pre>\n<p>\u5ba2\u6237\u7aef\u6d4b\u8bd5\uff1a<\/p>\n<pre><code>redis-cli.exe -h 127.0.0.1 -p 6379\nset test &quot;Hello World&quot;\nget test<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Redis-Server.png\" alt=\"Redis Server\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Redis-Client.png\" alt=\"Redis Client\" \/><\/p>\n<h3>dmajkic Redis<\/h3>\n<p>\u53cc\u51fb redis-server.exe \u8fd0\u884c\u670d\u52a1\u7aef<\/p>\n<p>\u53cc\u51fb redis-cli.exe \u8fd0\u884c\u5ba2\u6237\u7aef<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redis\u7b80\u4ecb Redis\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684key-value\u5b58\u50a8\u7cfb\u7edf\u3002\u652f\u6301\u5b58\u50a8\u7684value\u7c7b\u578b\u76f8\u5bf9\u66f4\u591a\uff0c\u5305\u62ecst [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[153],"class_list":["post-460","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-redis"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=460"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/460\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}