{"id":33812,"date":"2022-11-30T22:41:09","date_gmt":"2022-08-07T11:54:07","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/"},"modified":"2024-01-15T08:02:18","modified_gmt":"2024-01-15T00:02:18","slug":"%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/","title":{"rendered":"\u5728Mac\u4e0a\u5b89\u88c5Redis"},"content":{"rendered":"<p>\u4f7f\u7528\u81ea\u5236\u8f6f\u4ef6\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code>brew install redis\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>==&gt; Downloading http:\/\/redis.googlecode.com\/files\/redis-2.6.10.tar.gz\r\n######################################################################## 100.0%\r\n==&gt; make -C \/private\/tmp\/redis-e09G\/redis-2.6.10\/src CC=cc\r\n==&gt; Caveats\r\nTo have launchd start redis at login:\r\n    ln -sfv \/usr\/local\/opt\/redis\/*.plist ~\/Library\/LaunchAgents\r\nThen to load redis now:\r\n    launchctl load ~\/Library\/LaunchAgents\/homebrew.mxcl.redis.plist\r\nOr, if you don't want\/need launchctl, you can just run:\r\n    redis-server \/usr\/local\/etc\/redis.conf\r\n==&gt; Summary\r\n\/usr\/local\/Cellar\/redis\/2.6.10: 9 files, 748K, built in 9 seconds\r\n\r\n<\/code><\/pre>\n<p>\u542f\u52a8<\/p>\n<pre class=\"post-pre\"><code> redis-server \/usr\/local\/etc\/redis.conf\r\n<\/code><\/pre>\n<p>\u8fde\u63a5<\/p>\n<pre class=\"post-pre\"><code>redis-cli\r\n<\/code><\/pre>\n<p>\u786e\u8ba4<\/p>\n<pre class=\"post-pre\"><code>redis 127.0.0.1:6379&gt; set key val\r\nOK\r\nredis 127.0.0.1:6379&gt; get key\r\n\"val\"\r\n\r\n<\/code><\/pre>\n<p>GUI\u5ba2\u6237\u7aef<br \/>\n* http:\/\/redisdesktop.com\/<br \/>\n* https:\/\/github.com\/joeferner\/redis-commander<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u81ea\u5236\u8f6f\u4ef6\u8fdb\u884c\u5b89\u88c5\u3002 brew install redis ==&gt; Downloading http: [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33812","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Mac\u4e0a\u5b89\u88c5Redis - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728mac\u4e0a\u5b89\u88c5redis\u3002-3\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Mac\u4e0a\u5b89\u88c5Redis\" \/>\n<meta property=\"og:description\" content=\"\u4f7f\u7528\u81ea\u5236\u8f6f\u4ef6\u8fdb\u884c\u5b89\u88c5\u3002 brew install redis ==&gt; Downloading http: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728mac\u4e0a\u5b89\u88c5redis\u3002-3\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-07T11:54:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T00:02:18+00:00\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/\",\"name\":\"\u5728Mac\u4e0a\u5b89\u88c5Redis - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-08-07T11:54:07+00:00\",\"dateModified\":\"2024-01-15T00:02:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Mac\u4e0a\u5b89\u88c5Redis\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728Mac\u4e0a\u5b89\u88c5Redis - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728mac\u4e0a\u5b89\u88c5redis\u3002-3\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Mac\u4e0a\u5b89\u88c5Redis","og_description":"\u4f7f\u7528\u81ea\u5236\u8f6f\u4ef6\u8fdb\u884c\u5b89\u88c5\u3002 brew install redis ==&gt; Downloading http: [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728mac\u4e0a\u5b89\u88c5redis\u3002-3\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-08-07T11:54:07+00:00","article_modified_time":"2024-01-15T00:02:18+00:00","author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/","name":"\u5728Mac\u4e0a\u5b89\u88c5Redis - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-08-07T11:54:07+00:00","dateModified":"2024-01-15T00:02:18+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728Mac\u4e0a\u5b89\u88c5Redis"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis%e3%80%82-3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=33812"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33812\/revisions"}],"predecessor-version":[{"id":57598,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33812\/revisions\/57598"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=33812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=33812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=33812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}