{"id":33809,"date":"2022-12-08T04:03:51","date_gmt":"2023-10-21T15:00:05","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/"},"modified":"2024-01-15T08:02:02","modified_gmt":"2024-01-15T00:02:02","slug":"%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/","title":{"rendered":"\u5728Mac\u4e0a\u5b89\u88c5Redis"},"content":{"rendered":"<p>\u4f7f\u7528Homebrew\u5b89\u88c5Redis\u952e\u503c\u5b58\u50a8\u7cfb\u7edf\uff0c\u770b\u8d77\u6765\u6bd4memcached\u66f4\u597d\u3002<\/p>\n<pre class=\"post-pre\"><code>$ brew update\r\n$ brew install redis\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>Error: Failed executing: make -C src \r\nIf `brew doctor' does not help diagnose the issue, please report the bug:\r\n    https:\/\/github.com\/mxcl\/homebrew\/wiki\/checklist-before-filing-a-new-issue\r\n<\/code><\/pre>\n<p>\u51fa\u73b0\u9519\u8bef\uff0c\u8981\u6c42\u6211\u8fd0\u884cbrew doctor\u6765\u8fdb\u884c\u68c0\u67e5\u3002<\/p>\n<pre class=\"post-pre\"><code>$ brew doctor redis\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>We couldn't detect gcc 4.2.x. Some formulae require this compiler.\r\nNOTE: Versions of XCode newer than 4.2 don't include gcc 4.2.x.\r\n\r\n==&gt; \/usr\/bin occurs before \/usr\/local\/bin\r\nThis means that system-provided programs will be used instead of those\r\nprovided by Homebrew. This is an issue if you eg. brew installed Python.\r\n\r\nConsider editing your .bashrc to put:\r\n  \/usr\/local\/bin\r\nahead of \/usr\/bin in your PATH.\r\nSome \"config\" scripts were found in your path, but not in system or Homebrew folders.\r\n\r\n`.\/configure` scripts often look for *-config scripts to determine if software packages\r\nare installed, and what additional flags to use when compiling and linking.\r\n\r\nHaving additional scripts in your path can confuse software installed via Homebrew if\r\nthe config script overrides a system or Homebrew provided script of the same name.\r\n\r\n\/Applications\/MAMP\/Library\/bin\r\n    curl-config freetype-config libmcrypt-config libpng-config libpng15-config sablot-config xml2-config xslt-config yaz-config\r\n<\/code><\/pre>\n<p>\u56e0\u4e3a\u88ab\u8981\u6c42\u5c06\/usr\/local\/bin\u653e\u5728\/usr\/bin\u4e4b\u524d\uff0c\u6240\u4ee5\u6211\u5728.bashrc\u6587\u4ef6\u4e2d\u6539\u53d8\u4e86$PATH\u7684\u987a\u5e8f\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.4.6.tar.gz\r\nFile already downloaded in \/Users\/suin\/Library\/Caches\/Homebrew\r\n==&gt; make -C src\r\n==&gt; Caveats\r\nIf this is your first install, automatically load on login with:\r\n    mkdir -p ~\/Library\/LaunchAgents\r\n    cp \/usr\/local\/Cellar\/redis\/2.4.6\/io.redis.redis-server.plist ~\/Library\/LaunchAgents\/\r\n    launchctl load -w ~\/Library\/LaunchAgents\/io.redis.redis-server.plist\r\n\r\nIf this is an upgrade and you already have the io.redis.redis-server.plist loaded:\r\n    launchctl unload -w ~\/Library\/LaunchAgents\/io.redis.redis-server.plist\r\n    cp \/usr\/local\/Cellar\/redis\/2.4.6\/io.redis.redis-server.plist ~\/Library\/LaunchAgents\/\r\n    launchctl load -w ~\/Library\/LaunchAgents\/io.redis.redis-server.plist\r\n\r\n  To start redis manually:\r\n    redis-server \/usr\/local\/etc\/redis.conf\r\n\r\n  To access the server:\r\n    redis-cli\r\n==&gt; Summary\r\n\/usr\/local\/Cellar\/redis\/2.4.6: 9 files, 460K, built in 3 seconds\r\n<\/code><\/pre>\n<p>\u5b8c\u6210\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528Homebrew\u5b89\u88c5Redis\u952e\u503c\u5b58\u50a8\u7cfb\u7edf\uff0c\u770b\u8d77\u6765\u6bd4memcached\u66f4\u597d\u3002 $ brew update  [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33809","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\/\" \/>\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\u7528Homebrew\u5b89\u88c5Redis\u952e\u503c\u5b58\u50a8\u7cfb\u7edf\uff0c\u770b\u8d77\u6765\u6bd4memcached\u66f4\u597d\u3002 $ brew update [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728mac\u4e0a\u5b89\u88c5redis\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-21T15:00:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T00:02:02+00:00\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \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\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/\",\"name\":\"\u5728Mac\u4e0a\u5b89\u88c5Redis - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-21T15:00:05+00:00\",\"dateModified\":\"2024-01-15T00:02:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/#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\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/#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\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/#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\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Mac\u4e0a\u5b89\u88c5Redis","og_description":"\u4f7f\u7528Homebrew\u5b89\u88c5Redis\u952e\u503c\u5b58\u50a8\u7cfb\u7edf\uff0c\u770b\u8d77\u6765\u6bd4memcached\u66f4\u597d\u3002 $ brew update [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728mac\u4e0a\u5b89\u88c5redis\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-21T15:00:05+00:00","article_modified_time":"2024-01-15T00:02:02+00:00","author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \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\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/","name":"\u5728Mac\u4e0a\u5b89\u88c5Redis - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-21T15:00:05+00:00","dateModified":"2024-01-15T00:02:02+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/#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\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/#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\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e5%ae%89%e8%a3%85redis\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33809","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=33809"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33809\/revisions"}],"predecessor-version":[{"id":57596,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33809\/revisions\/57596"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=33809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=33809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=33809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}