{"id":522,"date":"2023-08-28T17:28:57","date_gmt":"2023-08-28T09:28:57","guid":{"rendered":"http:\/\/madapapa.com\/wordpress\/?p=522"},"modified":"2023-08-28T17:30:52","modified_gmt":"2023-08-28T09:30:52","slug":"zaim1dian-nao-shang-zhong-xin-an-zhuangbrew-bing-g","status":"publish","type":"post","link":"http:\/\/madapapa.com\/wordpress\/?p=522","title":{"rendered":"\u5728m1\u7535\u8111\u4e0a\u91cd\u65b0\u5b89\u88c5brew\u5e76\u66f4\u65b0\u7cfb\u7edf"},"content":{"rendered":"<p>MacBook\u4f7f\u7528\u7b14\u8bb0\uff1a\u5b89\u88c5Homebrew\uff08M1\uff09\uff08<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/372576355%EF%BC%89\">https:\/\/zhuanlan.zhihu.com\/p\/372576355\uff09<\/a><\/p>\n<p>\u4f5c\u8005 \uff5c \u516c\u4f17\u53f7\uff1a\u7a0b\u5e8f\u5458\u7684\u4e00\u5929<\/p>\n<p>\u4e00\u3001Homebrew\u662f\u4ec0\u4e48\uff1f<\/p>\n<p>Homebrew\u5b98\u7f51\uff1a<\/p>\n<p>\u82f1\u6587\uff1a<br \/>\n<a href=\"https:\/\/brew.sh\">https:\/\/brew.sh<\/a><br \/>\n\u4e2d\u6587\uff1a<br \/>\n<a href=\"https:\/\/brew.sh\/index_zh-cn\">https:\/\/brew.sh\/index_zh-cn<\/a><br \/>\nHomebrew\u662fMacOS\uff08\u6216 Linux\uff09\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u3002<\/p>\n<p>\u901a\u8fc7\u5b83\uff0c\u6211\u4eec\u53ef\u4ee5\u65b9\u4fbf\u7684\u5bf9Mac\u4e0a\u7684\u5404\u79cd\u5e94\u7528\u8f6f\u4ef6\u8fdb\u884c\u7ba1\u7406\uff0c\u4f8b\u5982\uff1a\u5b89\u88c5\u3001\u66f4\u65b0\u3001\u67e5\u770b\u3001\u641c\u7d22\u3001\u5378\u8f7d\u7b49\u3002<\/p>\n<p>Homebrew\uff0c\u53ef\u8c13\u662fMac\u795e\u5668\uff0c\u51e0\u4e4e\u6bcf\u4e00\u4f4dMac\u4f7f\u7528\u8005\u90fd\u4f1a\u5b89\u88c5\u5b83\u3002<\/p>\n<p>\u7528Homebrew\u5b98\u7f51\u7684\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a<\/p>\n<p>Homebrew \u4f7f macOS\uff08\u6216\u60a8\u7684 Linux \u7cfb\u7edf\uff09\u66f4\u5b8c\u6574\u3002<\/p>\n<p>\u4e8c\u3001Mac\u4e0a\u5b89\u88c5Homebrew<\/p>\n<p>Homebrew 3.0.0\u7248\u5f00\u59cb\uff0c\u6b63\u5f0f\u652f\u6301Apple M1\u82af\u7247\uff0cM1\u7528\u6237\u653e\u5fc3\u5b89\u88c5\uff01<br \/>\n\u7b2c\u4e00\u6b65\uff1a<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\u3002\u4e0d\u77e5\u9053\u5982\u4f55\u6253\u5f00\u7ec8\u7aef\u7684\u670b\u53cb\uff0c\u8bf7\u53c2\u8003\uff1a<\/p>\n<p>\u7231\u7801\u58eb\uff1aMacBook\u4f7f\u7528\u7b14\u8bb0\uff1a\u6253\u5f00\u7ec8\u7aef<br \/>\n45 \u8d5e\u540c \u00b7 2 \u8bc4\u8bba\u6587\u7ae0<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a<\/p>\n<p>\u5728\u7ec8\u7aef\u547d\u4ee4\u884c\u7a97\u53e3\u8f93\u5165\u5b89\u88c5\u547d\u4ee4\u3002<\/p>\n<p>\u8fd9\u91cc\u9700\u8981\u7279\u522b\u8bf4\u660e\u51e0\u70b9\u5185\u5bb9\u3002<\/p>\n<p>\u4e0b\u9762\u662fHomebrew\u5b98\u65b9\u7ed9\u51fa\u7684\u5b89\u88c5\u547d\u4ee4\uff1a\uff08\u5982\u679c\u6ca1\u6709VPN\uff0c\u4e0d\u8981\u4f7f\u7528\u6b64\u547d\u4ee4\u5b89\u88c5\uff01\uff09<\/p>\n<p>\/bin\/bash -c &quot;$(curl -fsSL <a href=\"https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh\">https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh<\/a>)&quot;<br \/>\n\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5b98\u7f51\u7ed9\u51fa\u7684\u6307\u4ee4\u4f1a\u62a5\u9519\uff1a<\/p>\n<p>curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused<br \/>\n\u56e0\u4e3a\u8fd9\u662f\u56fd\u5916\u7f51\u7ad9\uff0c\u7531\u4e8eGFW\uff08\u4e2d\u56fd\u957f\u57ce\u9632\u706b\u5899\uff09\u7684\u5b58\u5728\uff0c\u5982\u679c\u6ca1\u6709vpn\uff0c\u662f\u65e0\u6cd5\u8bbf\u95ee\u7684\uff0c\u6240\u4ee5\u8fde\u63a5\u88ab\u62d2\u7edd\uff01<\/p>\n<p>\u522b\u7740\u6025\uff0c\u6709\u529e\u6cd5\u89e3\u51b3\uff01<\/p>\n<p>\u53ea\u8981\u6211\u4eec\u4ece\u56fd\u5185\u955c\u50cf\u7f51\u7ad9\u5b89\u88c5\uff0c\u5c31\u4e00\u5207OK\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0b\u4e3a\u56fd\u5185\u5b89\u88c5Homebrew\u7684\u6b63\u786e\u59ff\u52bf\uff1a(\u57fa\u4e8egitee\u4e0a\u67d0\u5927\u795e\u7684\u81ea\u52a8\u5b89\u88c5\u811a\u672c)<\/p>\n<p>\/bin\/zsh -c &quot;$(curl -fsSL <a href=\"https:\/\/gitee.com\/cunkai\/HomebrewCN\/raw\/master\/Homebrew.sh\">https:\/\/gitee.com\/cunkai\/HomebrewCN\/raw\/master\/Homebrew.sh<\/a>)&quot;<br \/>\n\u56de\u8f66\u6267\u884c\u6307\u4ee4\u540e\uff0c\u6839\u636e\u63d0\u793a\u64cd\u4f5c\u3002\u5177\u4f53\u5305\u62ec\u4ee5\u4e0b\u63d0\u793a\u64cd\u4f5c\uff1a<\/p>\n<p>\uff081\uff09\u9009\u62e9\u4e0b\u8f7d\u955c\u50cf<\/p>\n<p>\u6839\u636e\u9700\u8981\u9009\u62e9\u4e0b\u8f7d\u6e90\uff0c\u4f8b\u5982\uff0c\u6211\u8fd9\u91cc\u9009\u62e9\u4e2d\u79d1\u5927\u4e0b\u8f7d\u6e90\uff0c\u5c31\u8f93\u5165\u20181\u2019\uff0c\u56de\u8f66\u3002<\/p>\n<p>\uff082\uff09\u786e\u8ba4\u5220\u9664\u65e7\u7248\u672c<\/p>\n<p>\u5982\u679c\u5b58\u5728\u65e7\u7248\u672c\uff0c\u4f1a\u5f39\u51fa\u5220\u9664\u65e7\u7248\u672c\u63d0\u793a\uff0c\u8f93\u5165&quot;Y&quot;\uff0c\u56de\u8f66\u3002<\/p>\n<p>\uff083\uff09\u8f93\u5165\u5f00\u673a\u5bc6\u7801\uff08\u7528\u4e8emac\u786e\u8ba4\u7b2c\u4e09\u65b9\u5e94\u7528\u5b89\u88c5\uff09<\/p>\n<p>\uff084\uff09\u5b89\u88c5git<\/p>\n<p>\u5982\u679c\u4e4b\u524d\u6ca1\u6709\u5b89\u88c5\u8fc7git\uff0c\u4f1a\u7ec8\u6b62homebrew\u5b89\u88c5\uff0c\u5f39\u51fagit\u5b89\u88c5\u63d0\u793a\uff0c\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u3002<\/p>\n<p>\uff085\uff09\u518d\u6b21\u6267\u884chomebrew\u5b89\u88c5\u6307\u4ee4<\/p>\n<p>\u8010\u5fc3\u7b49\u5f85git\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u518d\u6b21\u8fd0\u884chomebrew\u5b89\u88c5\u6307\u4ee4\uff0c\u91cd\u65b0\u6839\u636e\u63d0\u793a\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n<p>\u5b89\u88c5\u9700\u8981\u4e00\u6bb5\u65f6\u95f4\uff0c\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u5728\u7ec8\u7aef\u770b\u5230\u811a\u672c\u6267\u884c\u4e86\u90a3\u4e9b\u64cd\u4f5c\u3002<\/p>\n<p>\uff086\uff09\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f<\/p>\n<p>\u5b89\u88c5\u811a\u672c\u6267\u884c\u5b8c\u6210\u540e\uff0c\u91cd\u542f\u7ec8\u7aef\u3002\uff08\u91cd\u542f\u540e\u624d\u751f\u6548\uff09<\/p>\n<p>\u901a\u8fc7\u5728\u7ec8\u7aef\u8f93\u5165&quot;brew -v&quot;\uff0c\u53ef\u4ee5\u67e5\u770bhomebrew\u7248\u672c\u3002<\/p>\n<p>\u5982\u679c\u6b63\u786e\u8f93\u51fa\u7248\u672c\u4fe1\u606f\uff0c\u8868\u793a\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<p>\u867d\u7136\u53eb\u505a&#8217;Homebrew&#8217;\uff0c\u4f46\u5b9e\u9645\u4f7f\u7528\u65f6\uff0c\u547d\u4ee4\u662f&#8217;brew&#8217;\u3002<br \/>\nqiuxiannv@qiuxiannvdeMBP ~ % brew -v<br \/>\nHomebrew 3.1.7-42-gd45832b<br \/>\nHomebrew\/homebrew-core (git revision 09d1a8b385; last commit 2021-05-15)<br \/>\nHomebrew\/homebrew-cask (git revision c1dad4a5cf; last commit 2021-05-15)<br \/>\nqiuxiannv@qiuxiannvdeMBP ~ %<br \/>\n\u5728M1\u82af\u7247\u4e0a\uff0chomebrew\u7684\u5b89\u88c5\u8def\u5f84\u4e3a\uff1a&quot;\/opt\/Homebrew\/&quot;<br \/>\n\u4e09\u3001Homebrew\u5378\u8f7d<\/p>\n<p>\u5982\u9700\u5378\u8f7d\uff0c\u4f7f\u7528\u6307\u4ee4\uff1a<\/p>\n<p>\/bin\/zsh -c &quot;$(curl -fsSL <a href=\"https:\/\/gitee.com\/cunkai\/HomebrewCN\/raw\/master\/HomebrewUninstall.sh\">https:\/\/gitee.com\/cunkai\/HomebrewCN\/raw\/master\/HomebrewUninstall.sh<\/a>)&quot;<br \/>\n\u5982\u679c\u6709\u7528\uff0c\u70b9\u4e2a\u8d5e\u5427\uff5e<\/p>\n<p>END<br \/>\n\u53d1\u5e03\u4e8e 2021-05-16 01:16<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MacBook\u4f7f\u7528\u7b14\u8bb0\uff1a\u5b89\u88c5Homebrew\uff08M1\uff09\uff08https:\/\/zhuanlan.zhihu.com\/p\/372576355\uff09 \u4f5c\u8005 \uff5c \u516c\u4f17\u53f7\uff1a\u7a0b\u5e8f\u5458\u7684\u4e00\u5929 \u4e00\u3001Homebrew\u662f\u4ec0\u4e48\uff1f Homebrew\u5b98\u7f51\uff1a \u82f1\u6587\uff1a https:\/\/brew.sh \u4e2d\u6587\uff1a https:\/\/brew.sh\/index_zh-cn Homebrew\u662fMacOS\uff08\u6216 Linux\uff09\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u3002 \u901a\u8fc7\u5b83\uff0c\u6211\u4eec\u53ef\u4ee5\u65b9\u4fbf\u7684\u5bf9Mac\u4e0a\u7684\u5404\u79cd\u5e94\u7528\u8f6f\u4ef6\u8fdb\u884c\u7ba1\u7406\uff0c\u4f8b\u5982\uff1a\u5b89\u88c5\u3001\u66f4\u65b0\u3001\u67e5\u770b\u3001\u641c\u7d22\u3001\u5378\u8f7d\u7b49\u3002 Homebrew\uff0c\u53ef\u8c13\u662fMac\u795e\u5668\uff0c\u51e0\u4e4e\u6bcf\u4e00\u4f4dMac\u4f7f\u7528\u8005\u90fd\u4f1a\u5b89\u88c5\u5b83\u3002 \u7528Homebrew\u5b98\u7f51\u7684\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a Homebrew \u4f7f macOS\uff08\u6216\u60a8\u7684 Linux \u7cfb\u7edf\uff09\u66f4\u5b8c\u6574\u3002 \u4e8c\u3001Mac\u4e0a\u5b89\u88c5Homebrew Homebrew 3.0.0\u7248\u5f00\u59cb\uff0c\u6b63\u5f0f\u652f\u6301Apple M1\u82af\u7247\uff0cM1\u7528\u6237\u653e\u5fc3\u5b89\u88c5\uff01 \u7b2c\u4e00\u6b65\uff1a \u6253\u5f00\u7ec8\u7aef\u3002\u4e0d\u77e5\u9053\u5982\u4f55\u6253\u5f00\u7ec8\u7aef\u7684\u670b\u53cb\uff0c\u8bf7\u53c2\u8003\uff1a \u7231\u7801\u58eb\uff1aMacBook\u4f7f\u7528\u7b14\u8bb0\uff1a\u6253\u5f00\u7ec8\u7aef 45 \u8d5e\u540c \u00b7 2 \u8bc4\u8bba\u6587\u7ae0 \u7b2c\u4e8c\u6b65\uff1a \u5728\u7ec8\u7aef\u547d\u4ee4\u884c\u7a97\u53e3\u8f93\u5165\u5b89\u88c5\u547d\u4ee4\u3002 \u8fd9\u91cc\u9700\u8981\u7279\u522b\u8bf4\u660e\u51e0\u70b9\u5185\u5bb9\u3002 \u4e0b\u9762\u662fHomebrew\u5b98\u65b9\u7ed9\u51fa\u7684\u5b89\u88c5\u547d\u4ee4\uff1a\uff08\u5982\u679c\u6ca1\u6709VPN\uff0c\u4e0d\u8981\u4f7f\u7528\u6b64\u547d\u4ee4\u5b89\u88c5\uff01\uff09 \/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot; \u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5b98\u7f51\u7ed9\u51fa\u7684\u6307\u4ee4\u4f1a\u62a5\u9519\uff1a curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused \u56e0\u4e3a\u8fd9\u662f\u56fd\u5916\u7f51\u7ad9\uff0c\u7531\u4e8eGFW\uff08\u4e2d\u56fd\u957f\u57ce\u9632\u706b\u5899\uff09\u7684\u5b58\u5728\uff0c\u5982\u679c\u6ca1\u6709vpn\uff0c\u662f\u65e0\u6cd5\u8bbf\u95ee\u7684\uff0c\u6240\u4ee5\u8fde\u63a5\u88ab\u62d2\u7edd\uff01 \u522b\u7740\u6025\uff0c\u6709\u529e\u6cd5\u89e3\u51b3\uff01 &hellip; <a href=\"http:\/\/madapapa.com\/wordpress\/?p=522\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u5728m1\u7535\u8111\u4e0a\u91cd\u65b0\u5b89\u88c5brew\u5e76\u66f4\u65b0\u7cfb\u7edf<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-522","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=522"}],"version-history":[{"count":1,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/522\/revisions"}],"predecessor-version":[{"id":523,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/522\/revisions\/523"}],"wp:attachment":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=522"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}