{"id":10021021,"date":"2025-09-29T22:55:26","date_gmt":"2025-09-29T14:55:26","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021021"},"modified":"2025-09-29T22:55:26","modified_gmt":"2025-09-29T14:55:26","slug":"%e5%89%8d%e7%ab%af%e9%83%a8%e7%bd%b2%e5%b7%a5%e5%85%b7-pinme","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021021","title":{"rendered":"\u524d\u7aef\u90e8\u7f72\u5de5\u5177 PinMe"},"content":{"rendered":"<h2>PinMe \u7b80\u4ecb<\/h2>\n<h3>\u4ec0\u4e48\u662f PinMe\uff1f<\/h3>\n<p>PinMe \u662f\u4e00\u4e2a\u514d\u8d39\u7684 IPFS \u6258\u7ba1\u5e73\u53f0\uff0c\u4e13\u4e3a\u9759\u6001\u7f51\u7ad9\u90e8\u7f72\u8bbe\u8ba1\u3002\u5b83\u80fd\u8ba9\u5f00\u53d1\u8005\u5728\u51e0\u79d2\u949f\u5185\u5c06\u7f51\u7ad9\u90e8\u7f72\u5230 IPFS \u7f51\u7edc\u4e0a\uff0c\u786e\u4fdd\u5185\u5bb9\u7684\u6301\u4e45\u6027\u548c\u6297\u5ba1\u67e5\u80fd\u529b\u3002<\/p>\n<p>PinMe \u7684\u6838\u5fc3\u4ef7\u503c\u662f\u63d0\u4f9b\u7b80\u5355\u3001\u5feb\u901f\u3001\u514d\u8d39\u7684\u524d\u7aef\u90e8\u7f72\u4f53\u9a8c\uff0c\u8ba9\u5f00\u53d1\u8005\u4e13\u6ce8\u4e8e\u5185\u5bb9\u521b\u4f5c\u3002<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u9009\u62e9 PinMe\uff1f<\/h3>\n<p>\u76f8\u6bd4\u4f20\u7edf\u6258\u7ba1\u670d\u52a1\uff0cPinMe \u5177\u6709\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n<ul>\n<li><strong>\u5b8c\u5168\u514d\u8d39<\/strong>\uff1a\u65e0\u9700\u652f\u4ed8\u670d\u52a1\u5668\u8d39\u7528\u6216\u8ba2\u9605\u8d39\u7528<\/li>\n<li><strong>\u53bb\u4e2d\u5fc3\u5316<\/strong>\uff1a\u5185\u5bb9\u5b58\u50a8\u5728 IPFS \u7f51\u7edc\u4e0a\uff0c\u4e0d\u4f9d\u8d56\u5355\u4e00\u516c\u53f8\u670d\u52a1\u5668<\/li>\n<li><strong>\u5185\u5bb9\u81ea\u4e3b\u6743<\/strong>\uff1a\u7528\u6237\u5b8c\u5168\u638c\u63a7\u81ea\u5df1\u7684\u5185\u5bb9\uff0c\u65e0\u5e73\u53f0\u9501\u5b9a\u98ce\u9669<\/li>\n<li><strong>\u6297\u5ba1\u67e5\u6027\u5f3a<\/strong>\uff1a\u5185\u5bb9\u4e0d\u6613\u88ab\u5355\u65b9\u9762\u5220\u9664<\/li>\n<li><strong>\u5168\u7403\u52a0\u901f<\/strong>\uff1a\u901a\u8fc7\u70b9\u5bf9\u70b9\u7f51\u7edc\u4f18\u5316\u5168\u7403\u8bbf\u95ee\u901f\u5ea6<\/li>\n<\/ul>\n<h3>\u9002\u7528\u573a\u666f<\/h3>\n<p>PinMe \u9002\u7528\u4e8e\u4ee5\u4e0b\u573a\u666f\uff1a<\/p>\n<ul>\n<li>\u4e2a\u4eba\u535a\u5ba2\u548c\u4f5c\u54c1\u96c6<\/li>\n<li>\u5f00\u6e90\u9879\u76ee\u6587\u6863<\/li>\n<li>\u539f\u578b\u8bbe\u8ba1\u5c55\u793a<\/li>\n<li>\u5c0f\u578b\u4f01\u4e1a\u7f51\u7ad9<\/li>\n<li>\u5b9e\u9a8c\u6027\u9879\u76ee<\/li>\n<\/ul>\n<h2>\u5feb\u901f\u4e0a\u624b<\/h2>\n<h3>\u90e8\u7f72\u65b9\u5f0f<\/h3>\n<h4>\u7ec8\u7aef\u90e8\u7f72<\/h4>\n<p>\u4f7f\u7528 PinMe CLI \u5de5\u5177\u90e8\u7f72\u7f51\u7ad9\uff1a<\/p>\n<p><strong>\u5b89\u88c5 PinMe CLI<\/strong><\/p>\n<pre><code class=\"bash\">npm install -g pinme<\/code><\/pre>\n<p><strong>\u90e8\u7f72\u9759\u6001\u7f51\u7ad9<\/strong><\/p>\n<pre><code class=\"bash\">pinme upload &lt;folder\/file-path&gt;<\/code><\/pre>\n<p>\u5176\u4e2d <code>&lt;folder\/file-path&gt;<\/code> \u662f\u8981\u90e8\u7f72\u7684\u9759\u6001\u7f51\u7ad9\u6587\u4ef6\u5939\u6216\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<h4>\u6d4f\u89c8\u5668\u90e8\u7f72<\/h4>\n<p>PinMe \u4e5f\u652f\u6301\u901a\u8fc7\u7f51\u9875\u76f4\u63a5\u4e0a\u4f20\u6587\u4ef6\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"381\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmDhF\" alt=\"PinMe \u6d4f\u89c8\u5668\u4e0a\u4f20\u754c\u9762\" title=\"PinMe \u6d4f\u89c8\u5668\u4e0a\u4f20\u754c\u9762\"><\/p>\n<p><a href=\"https:\/\/link.segmentfault.com\/?enc=%2B8IXIJdDG2HhPG7%2BEHhJAA%3D%3D.FXKOsUmEUUI%2Fz03ruqofrawG08MEkHifcC4XgVkFtIoD8WJ9l0ZkjR%2F0yZYIBH%2Fary3VZcQSCon0s5eg1n79qbODTI3x8Z10SR9AB6bTF28%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u67e5\u770b\u90e8\u7f72\u793a\u4f8b<\/a><\/p>\n<h3>\u4f7f\u7528\u6307\u5357<\/h3>\n<h4>\u9879\u76ee\u51c6\u5907<\/h4>\n<p>\u90e8\u7f72\u524d\u786e\u4fdd\u9879\u76ee\u6ee1\u8db3\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u5fc5\u987b\u662f\u9759\u6001\u7f51\u7ad9\uff08HTML\u3001CSS\u3001JavaScript\u3001\u56fe\u7247\u7b49\uff09<\/li>\n<li>\u4e0d\u5305\u542b\u670d\u52a1\u5668\u7aef\u4ee3\u7801<\/li>\n<li>\u63a8\u8350\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u5f15\u7528\u8d44\u6e90<\/li>\n<li>\u4f7f\u7528\u6846\u67b6\u7684\u9879\u76ee\u9700\u5148\u6784\u5efa\u751f\u6210\u9759\u6001\u6587\u4ef6<\/li>\n<\/ul>\n<h4>\u5e38\u89c1\u6846\u67b6\u90e8\u7f72<\/h4>\n<pre><code class=\"bash\"># React \u9879\u76ee\nnpm run build\npinme upload build\/\n\n# Vue \u9879\u76ee\nnpm run build\npinme upload dist\/\n\n# Angular \u9879\u76ee\nng build\npinme upload dist\/<\/code><\/pre>\n<h4>\u81ea\u5b9a\u4e49\u57df\u540d<\/h4>\n<p>\u4e3a\u7f51\u7ad9\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\uff1a<\/p>\n<ol>\n<li>\u83b7\u53d6\u7f51\u7ad9\u7684 IPFS CID<\/li>\n<li>\n<p>\u5728\u57df\u540d\u6ce8\u518c\u5546\u5904\u8bbe\u7f6e DNS \u8bb0\u5f55\uff1a<\/p>\n<ul>\n<li>\u6dfb\u52a0 CNAME \u8bb0\u5f55\u6307\u5411 PinMe \u7684 IPFS \u7f51\u5173<\/li>\n<li>\u6216\u4f7f\u7528 DNSLink\uff08\u63a8\u8350\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\u8be6\u60c5\u53c2\u8003 <a href=\"https:\/\/link.segmentfault.com\/?enc=f36034h32QwZUISYv2Utdg%3D%3D.LbnFJLK3uOpB9%2Buz%2F6Zif14xQB6cfe63KgoEIokKA14cPTvpZ%2FNkoMCfqpLdbHTSxDR4sFbNA877r94pxP1kqYL9Cv4MAJiW7zBYahe%2FEC%2Bmgo6K9tKufLEpOLiVh0KL\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">IPFS \u5b98\u65b9\u6587\u6863<\/a><\/li>\n<\/ol>\n<h2>\u5de5\u4f5c\u539f\u7406<\/h2>\n<h3>\u5de5\u4f5c\u6d41\u7a0b<\/h3>\n<p>PinMe \u57fa\u4e8e IPFS \u534f\u8bae\u5de5\u4f5c\uff0c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li><strong>\u5185\u5bb9\u54c8\u5e0c\u751f\u6210<\/strong>\uff1a\u4e0a\u4f20\u6587\u4ef6\u65f6\uff0c\u4e3a\u6bcf\u4e2a\u6587\u4ef6\u751f\u6210\u552f\u4e00\u7684 IPFS \u5185\u5bb9\u6807\u8bc6\u7b26\uff08CID\uff09<\/li>\n<li><strong>\u5185\u5bb9\u56fa\u5b9a<\/strong>\uff1a\u5c06\u5185\u5bb9\u56fa\u5b9a\u5728 IPFS \u7f51\u7edc\u4e0a\uff0c\u9632\u6b62\u88ab\u5783\u573e\u56de\u6536<\/li>\n<li><strong>\u5185\u5bb9\u5206\u53d1<\/strong>\uff1a\u5206\u53d1\u5230\u591a\u4e2a\u8282\u70b9\uff0c\u63d0\u9ad8\u53ef\u7528\u6027\u548c\u8bbf\u95ee\u901f\u5ea6<\/li>\n<li><strong>\u8bbf\u95ee\u8def\u7531<\/strong>\uff1a\u63d0\u4f9b\u4ece\u57df\u540d\u5230 IPFS \u5185\u5bb9\u7684\u89e3\u6790\u670d\u52a1<\/li>\n<\/ol>\n<h3>\u6280\u672f\u67b6\u6784<\/h3>\n<p>PinMe \u7684\u6280\u672f\u67b6\u6784\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u5ba2\u6237\u7aef\u5de5\u5177<\/strong>\uff1aCLI \u548c Web \u4e0a\u4f20\u754c\u9762<\/li>\n<li><strong>IPFS \u7f51\u5173<\/strong>\uff1a\u8fde\u63a5\u7528\u6237\u4e0e IPFS \u7f51\u7edc<\/li>\n<li><strong>\u5185\u5bb9\u56fa\u5b9a\u670d\u52a1<\/strong>\uff1a\u786e\u4fdd\u5185\u5bb9\u957f\u671f\u5b58\u5728<\/li>\n<li><strong>\u57df\u540d\u89e3\u6790\u670d\u52a1<\/strong>\uff1a\u63d0\u4f9b\u57df\u540d\u5230 CID \u7684\u89e3\u6790<\/li>\n<\/ul>\n<h2>IPFS \u57fa\u7840\u77e5\u8bc6<\/h2>\n<h3>\u4ec0\u4e48\u662f IPFS\uff1f<\/h3>\n<p>IPFS\uff08\u661f\u9645\u6587\u4ef6\u7cfb\u7edf\uff09\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u70b9\u5bf9\u70b9\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\uff0c\u65e8\u5728\u521b\u5efa\u6301\u4e45\u4e14\u5206\u5e03\u5f0f\u7684 Web\u3002\u5b83\u4f7f\u7528\u57fa\u4e8e\u5185\u5bb9\u5bfb\u5740\u7684\u65b9\u6cd5\uff0c\u6bcf\u4e2a\u6587\u4ef6\u7531\u5176\u5185\u5bb9\u7684\u54c8\u5e0c\u503c\u6807\u8bc6\u3002<\/p>\n<h3>\u6838\u5fc3\u6982\u5ff5<\/h3>\n<ul>\n<li><strong>\u5185\u5bb9\u5bfb\u5740<\/strong>\uff1a\u4f7f\u7528\u5185\u5bb9\u7684\u54c8\u5e0c\u503c\uff08CID\uff09\u6807\u8bc6\u6587\u4ef6\uff0c\u76f8\u540c\u5185\u5bb9\u53ea\u5b58\u50a8\u4e00\u6b21<\/li>\n<li><strong>\u5206\u5e03\u5f0f\u5b58\u50a8<\/strong>\uff1a\u6587\u4ef6\u5206\u5e03\u5728\u7f51\u7edc\u7684\u591a\u4e2a\u8282\u70b9\u4e0a\uff0c\u63d0\u9ad8\u53ef\u7528\u6027<\/li>\n<li><strong>\u7248\u672c\u63a7\u5236<\/strong>\uff1a\u6bcf\u6b21\u4fee\u6539\u751f\u6210\u65b0 CID\uff0c\u652f\u6301\u5386\u53f2\u7248\u672c\u8ffd\u8e2a<\/li>\n<li><strong>\u5185\u5bb9\u56fa\u5b9a<\/strong>\uff1a&#8221;\u56fa\u5b9a&#8221;\u5185\u5bb9\u9632\u6b62\u88ab\u5783\u573e\u56de\u6536<\/li>\n<\/ul>\n<h3>\u5de5\u4f5c\u539f\u7406<\/h3>\n<p>\u6587\u4ef6\u6dfb\u52a0\u5230 IPFS \u7684\u8fc7\u7a0b\uff1a<\/p>\n<ol>\n<li>\u6587\u4ef6\u88ab\u5206\u5272\u6210\u56fa\u5b9a\u5927\u5c0f\u7684\u5757<\/li>\n<li>\u6bcf\u4e2a\u5757\u751f\u6210\u552f\u4e00\u54c8\u5e0c\u503c<\/li>\n<li>\u5757\u88ab\u7ec4\u7ec7\u6210\u6709\u5411\u65e0\u73af\u56fe\uff08DAG\uff09<\/li>\n<li>\u6574\u4e2a\u6587\u4ef6\u7ed3\u6784\u7684\u6839\u54c8\u5e0c\u4f5c\u4e3a\u6587\u4ef6\u7684 CID<\/li>\n<\/ol>\n<p>\u8bbf\u95ee CID \u65f6\uff0cIPFS \u7f51\u7edc\u4f1a\uff1a<\/p>\n<ol>\n<li>\u5728\u672c\u5730\u8282\u70b9\u67e5\u627e\u5185\u5bb9<\/li>\n<li>\u672c\u5730\u6ca1\u6709\u5219\u5728\u7f51\u7edc\u4e2d\u67e5\u627e\u6301\u6709\u5185\u5bb9\u7684\u8282\u70b9<\/li>\n<li>\u4ece\u8282\u70b9\u83b7\u53d6\u5185\u5bb9\u5e76\u8fd4\u56de\u7ed9\u7528\u6237<\/li>\n<li>\u5728\u672c\u5730\u7f13\u5b58\u5185\u5bb9\uff0c\u52a0\u901f\u672a\u6765\u8bbf\u95ee<\/li>\n<\/ol>\n<h2>\u603b\u7ed3<\/h2>\n<p>PinMe \u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u7b80\u5355\u3001\u5feb\u901f\u3001\u514d\u8d39\u7684\u9759\u6001\u7f51\u7ad9\u53bb\u4e2d\u5fc3\u5316\u6258\u7ba1\u89e3\u51b3\u65b9\u6848\u3002\u901a\u8fc7 IPFS \u6280\u672f\uff0c\u5b9e\u73b0\u4e86\u5185\u5bb9\u7684\u6301\u4e45\u6027\u3001\u6297\u5ba1\u67e5\u6027\u548c\u5168\u7403\u5206\u53d1\u80fd\u529b\u3002<\/p>\n<p>\u968f\u7740 Web3 \u53d1\u5c55\uff0c\u53bb\u4e2d\u5fc3\u5316\u5b58\u50a8\u5c06\u8d8a\u6765\u8d8a\u91cd\u8981\u3002PinMe \u4f5c\u4e3a\u5b9e\u7528\u5de5\u5177\uff0c\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u63a2\u7d22 Web3 \u7684\u4fbf\u6377\u5165\u53e3\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047300886\">https:\/\/segmentfault.com\/a\/1190000047300886<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PinMe \u7b80\u4ecb \u4ec0\u4e48\u662f PinMe\uff1f PinMe \u662f\u4e00\u4e2a\u514d\u8d39\u7684 IPFS \u6258\u7ba1\u5e73\u53f0\uff0c\u4e13\u4e3a\u9759\u6001\u7f51\u7ad9\u90e8\u7f72\u8bbe\u8ba1\u3002\u5b83 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021021","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021021"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021021\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}