{"id":554,"date":"2024-05-23T20:51:44","date_gmt":"2024-05-23T12:51:44","guid":{"rendered":"https:\/\/longhuayiyongyang.com\/?p=554"},"modified":"2024-05-23T20:51:47","modified_gmt":"2024-05-23T12:51:47","slug":"fil%e5%b8%81%e6%80%8e%e4%b9%88%e6%8c%96%e7%9f%bf%ef%bc%9f%e6%9c%80%e6%96%b0%e8%af%a6%e7%bb%86%e6%ad%a5%e9%aa%a4%e4%b8%8e%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"https:\/\/www.longhuayiyongyang.com\/554.html","title":{"rendered":"FIL\u5e01\u600e\u4e48\u6316\u77ff\uff1f\u6700\u65b0\u8be6\u7ec6\u6b65\u9aa4\u4e0e\u6280\u5de7"},"content":{"rendered":"

FIL\u5e01\uff08Filecoin\uff09\u662f\u4e00\u79cd\u53bb\u4e2d\u5fc3\u5316\u7684\u5b58\u50a8\u7f51\u7edc\uff0c\u901a\u8fc7\u533a\u5757\u94fe\u6280\u672f\u4e3a\u7528\u6237\u63d0\u4f9b\u5206\u5e03\u5f0f\u5b58\u50a8\u670d\u52a1\u3002Filecoin\u6316\u77ff\u4e0d\u4ec5\u9700\u8981\u8ba1\u7b97\u80fd\u529b\uff0c\u8fd8\u9700\u8981\u5927\u91cf\u7684\u5b58\u50a8\u8d44\u6e90\u3002<\/p>\n

\"\"<\/p>\n

\u4e00\uff0c\u51c6\u5907\u5de5\u4f5c<\/strong>
\n1. \u786c\u4ef6\u9700\u6c42
\nFilecoin\u6316\u77ff\u5bf9\u786c\u4ef6\u8981\u6c42\u8f83\u9ad8\uff0c\u5efa\u8bae\u914d\u7f6e\u5982\u4e0b\uff1a
\nCPU\uff1a\u9ad8\u6027\u80fd\u591a\u6838\u5904\u7406\u5668
\n\u5185\u5b58\uff1a\u81f3\u5c11128GB RAM
\n\u5b58\u50a8\uff1a\u9ad8\u6027\u80fdSSD\u7528\u4e8e\u7f13\u5b58\uff0c\u5927\u5bb9\u91cfHDD\u7528\u4e8e\u957f\u671f\u5b58\u50a8
\n\u7f51\u7edc\uff1a\u7a33\u5b9a\u7684\u9ad8\u901f\u4e92\u8054\u7f51\u8fde\u63a5<\/p>\n

\u4e8c\uff0c\u8f6f\u4ef6\u9700\u6c42<\/strong>
\n\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux\uff08\u63a8\u8350Ubuntu 18.04\u6216\u66f4\u9ad8\u7248\u672c\uff09
\nLotus\u8f6f\u4ef6\uff1aFilecoin\u5b98\u65b9\u77ff\u5de5\u8f6f\u4ef6
\nGo\u8bed\u8a00\u73af\u5883\uff1a\u7528\u4e8e\u7f16\u8bd1\u548c\u8fd0\u884cLotus<\/p>\n

\u4e09\uff0c\u6316\u77ff\u6b65\u9aa4<\/strong>
\n1. \u5b89\u88c5\u4f9d\u8d56
\n\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u9700\u8981\u5b89\u88c5\u5fc5\u8981\u7684\u8f6f\u4ef6\u4f9d\u8d56\uff1a
\nsudo apt update<\/code>
\nsudo apt install -y build-essential jq git gccgo-9<\/code><\/p>\n

2. \u5b89\u88c5Go\u8bed\u8a00\u73af\u5883
\n\u5b89\u88c5Go\u8bed\u8a00\u73af\u5883\uff0c\u7528\u4e8e\u7f16\u8bd1Lotus\uff1a
\nwget https:\/\/dl.google.com\/go\/go1.16.4.linux-amd64.tar.gz<\/code>
\nsudo tar -C \/usr\/local -xzf go1.16.4.linux-amd64.tar.gz<\/code>
\nexport PATH=$PATH:\/usr\/local\/go\/bin<\/code><\/p>\n

3. \u514b\u9686Lotus\u4ed3\u5e93\u5e76\u7f16\u8bd1
\n\u83b7\u53d6Lotus\u6e90\u4ee3\u7801\u5e76\u8fdb\u884c\u7f16\u8bd1\uff1a
\ngit clone https:\/\/github.com\/filecoin-project\/lotus.git<\/code>
\ncd lotus<\/code>
\nmake clean all<\/code><\/p>\n

4. \u521d\u59cb\u5316Lotus
\n\u542f\u52a8Lotus\u8282\u70b9\u5e76\u540c\u6b65\u533a\u5757\u94fe\u6570\u636e\uff1a
\n.\/lotus daemon<\/code>
\n\u9996\u6b21\u542f\u52a8\u65f6\uff0cLotus\u5c06\u5f00\u59cb\u4e0b\u8f7d\u548c\u9a8c\u8bc1\u533a\u5757\u94fe\u6570\u636e\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u8f83\u957f\u65f6\u95f4\u3002<\/p>\n

5. \u914d\u7f6e\u77ff\u5de5\u8282\u70b9
\n\u521d\u59cb\u5316\u5e76\u542f\u52a8\u77ff\u5de5\u8282\u70b9\uff1a
\n.\/lotus-miner init --sector-size 32GiB<\/code>
\n.\/lotus-miner run<\/code><\/p>\n

6. \u5b58\u50a8\u914d\u7f6e
\n\u914d\u7f6e\u77ff\u5de5\u7684\u5b58\u50a8\u8def\u5f84\uff1a
\nexport FIL_PATH=\/data\/lotusminer<\/code>
\n.\/lotus-miner storage attach --init --store<\/code><\/p>\n

7. \u63d0\u4ea4\u6247\u533a
\n\u521d\u59cb\u5316\u5e76\u63d0\u4ea4\u6247\u533a\uff1a
\n.\/lotus-miner sectors pledge<\/code><\/p>\n

\"\"<\/p>\n

\u56db\uff0c\u6316\u77ff\u6280\u5de7<\/strong><\/p>\n

1.\u786c\u4ef6\u4f18\u5316
\n\u4f7f\u7528\u9ad8\u6027\u80fd\u786c\u4ef6\u914d\u7f6e\uff0c\u7279\u522b\u662f\u5728\u5b58\u50a8\u8bbe\u5907\u548c\u5185\u5b58\u65b9\u9762\u3002NVMe SSD\u4f5c\u4e3a\u7f13\u5b58\u8bbe\u5907\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6316\u77ff\u6548\u7387\u3002<\/p>\n

2.\u7f51\u7edc\u4f18\u5316
\n\u786e\u4fdd\u7f51\u7edc\u8fde\u63a5\u7a33\u5b9a\u4e14\u9ad8\u901f\uff0c\u4f7f\u7528\u4e13\u7528\u7f51\u7edc\u7ebf\u8def\u548c\u8def\u7531\u8bbe\u5907\u4ee5\u51cf\u5c11\u7f51\u7edc\u5ef6\u8fdf\u3002<\/p>\n

3.\u5b9a\u671f\u7ef4\u62a4
\n\u4fdd\u6301\u786c\u4ef6\u8bbe\u5907\u7684\u826f\u597d\u8fd0\u884c\u72b6\u6001\uff0c\u5b9a\u671f\u68c0\u67e5\u548c\u7ef4\u62a4\u5b58\u50a8\u8bbe\u5907\u548c\u5185\u5b58\uff0c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u3002<\/p>\n

4.\u8f6f\u4ef6\u66f4\u65b0
\n\u5b9a\u671f\u66f4\u65b0Lotus\u8f6f\u4ef6\u548c\u64cd\u4f5c\u7cfb\u7edf\uff0c\u786e\u4fdd\u4f7f\u7528\u6700\u65b0\u7684\u5b89\u5168\u8865\u4e01\u548c\u6027\u80fd\u4f18\u5316\u3002<\/p>\n

\u4e94\uff0c\u6316\u77ff\u7684\u98ce\u9669\u548c\u6311\u6218<\/strong>
\n1. \u786c\u4ef6\u6210\u672c\uff1aFilecoin\u6316\u77ff\u9700\u8981\u9ad8\u6027\u80fd\u786c\u4ef6\uff0c\u521d\u671f\u6295\u8d44\u8f83\u9ad8\u3002
\n2. \u6280\u672f\u590d\u6742\u6027\uff1a\u4e0e\u4f20\u7edf\u52a0\u5bc6\u8d27\u5e01\u6316\u77ff\u76f8\u6bd4\uff0cFilecoin\u6316\u77ff\u6d89\u53ca\u66f4\u591a\u6280\u672f\u7ec6\u8282\u3002
\n3. \u5e02\u573a\u6ce2\u52a8\uff1aFilecoin\u7684\u5e02\u573a\u4ef7\u683c\u6ce2\u52a8\u8f83\u5927\uff0c\u6316\u77ff\u6536\u76ca\u53ef\u80fd\u4e0d\u7a33\u5b9a\u3002
\n4. \u7f51\u7edc\u7ef4\u62a4\uff1a\u77ff\u5de5\u9700\u8981\u957f\u65f6\u95f4\u4fdd\u6301\u5728\u7ebf\uff0c\u7f51\u7edc\u7ef4\u62a4\u548c\u7a33\u5b9a\u6027\u662f\u4e00\u4e2a\u6311\u6218\u3002<\/p>\n

FIL\u5e01\u6316\u77ff\u5177\u6709\u8f83\u9ad8\u7684\u6280\u672f\u95e8\u69db\u548c\u786c\u4ef6\u8981\u6c42\uff0c\u4f46\u4e5f\u63d0\u4f9b\u4e86\u72ec\u7279\u7684\u673a\u4f1a\u3002\u901a\u8fc7\u5408\u7406\u914d\u7f6e\u786c\u4ef6\u3001\u4f18\u5316\u7f51\u7edc\u8fde\u63a5\u548c\u5b9a\u671f\u7ef4\u62a4\uff0c\u77ff\u5de5\u53ef\u4ee5\u5728Filecoin\u7f51\u7edc\u4e2d\u83b7\u5f97\u7a33\u5b9a\u7684\u6536\u76ca\u3002\u5e0c\u671b\u672c\u6587\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u6280\u5de7\u80fd\u591f\u5e2e\u52a9\u60a8\u987a\u5229\u5f00\u59cbFIL\u5e01\u7684\u6316\u77ff\u4e4b\u65c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

FIL\u5e01\uff08Filecoin\uff09\u662f\u4e00\u79cd\u53bb\u4e2d\u5fc3\u5316\u7684\u5b58\u50a8\u7f51\u7edc\uff0c\u901a\u8fc7\u533a\u5757\u94fe\u6280\u672f\u4e3a\u7528\u6237\u63d0\u4f9b\u5206\u5e03\u5f0f\u5b58\u50a8\u670d\u52a1\u3002Filecoin […]<\/p>\n","protected":false},"author":6,"featured_media":556,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[111,110,112,113],"class_list":["post-554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-digital_encyclopedia","tag-filecoin","tag-fil","tag-112","tag-113"],"_links":{"self":[{"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/posts\/554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/comments?post=554"}],"version-history":[{"count":1,"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/posts\/554\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/posts\/554\/revisions\/560"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/media\/556"}],"wp:attachment":[{"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/media?parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/categories?post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.longhuayiyongyang.com\/wp-json\/wp\/v2\/tags?post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}