{"id":84200,"date":"2024-03-29T13:56:52","date_gmt":"2024-03-29T05:56:52","guid":{"rendered":"https:\/\/docs.pingcode.com\/?p=84200"},"modified":"2024-03-29T13:56:52","modified_gmt":"2024-03-29T05:56:52","slug":"linux%e4%b8%ad%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%aequorum%e5%8c%ba%e5%9d%97%e9%93%be%e5%b9%b3%e5%8f%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/84200.html","title":{"rendered":"Linux\u4e2d\u5982\u4f55\u5b89\u88c5\u548c\u914d\u7f6eQuorum\u533a\u5757\u94fe\u5e73\u53f0"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/03\/uploading_images2024-03-19_17-45-06_5231.png?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"Linux\u4e2d\u5982\u4f55\u5b89\u88c5\u548c\u914d\u7f6eQuorum\u533a\u5757\u94fe\u5e73\u53f0\" \/><\/p>\n<p><strong>\u5728Linux\u4e2d\u5b89\u88c5\u548c\u914d\u7f6eQuorum\u533a\u5757\u94fe\u5e73\u53f0<\/strong>\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u5b89\u88c5\u4e86\u5fc5\u8981\u7684\u4f9d\u8d56\u3001\u6bd4\u5982Go\u8bed\u8a00\u73af\u5883\u3001Node.js\u548cnpm\u5305\u7ba1\u7406\u5668\u3002\u63a5\u7740\uff0c\u901a\u8fc7Git\u5c06Quorum\u7684\u6e90\u7801\u514b\u9686\u5230\u672c\u5730\uff0c\u4f7f\u7528`make all`\u547d\u4ee4\u7f16\u8bd1\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u914d\u7f6e\u65b9\u9762\uff0c\u9700\u8981\u8bbe\u7f6e\u597dGenesis\u533a\u5757\u7684\u914d\u7f6e\u6587\u4ef6\u3001\u4e3a\u7f51\u7edc\u6210\u5458\u751f\u6210\u79c1\u94a5\u548c\u516c\u94a5\u3001\u914d\u7f6e\u8282\u70b9\u4fe1\u606f\u3001\u5e76\u8bbe\u7f6e\u7f51\u7edc\u8fde\u63a5\u7aef\u53e3\u3002\u8fd9\u4e9b\u6b65\u9aa4\u90fd\u5fc5\u987b\u7ecf\u8fc7\u7ec6\u81f4\u914d\u7f6e\uff0c\u7279\u522b\u662f<strong>\u521b\u59cb\u533a\u5757\u6587\u4ef6<\/strong>\uff0c\u5b83\u662f\u542f\u52a8Quorum\u7f51\u7edc\u7684\u57fa\u77f3\u3002<\/p>\n<h2><strong>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u7cfb\u7edf\u4f9d\u8d56<\/strong><\/h2>\n<p>\u5728\u5b89\u88c5Quorum\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u7684Linux\u7cfb\u7edf\u5df2\u5b89\u88c5\u4ee5\u4e0b\u4f9d\u8d56\u3002\u9700\u8981Go\u8bed\u8a00\u73af\u5883\uff0c\u56e0\u4e3aQuorum\u662f\u7528Go\u7f16\u5199\u7684\uff1b\u540c\u6837Node.js\u548cnpm\u4e5f\u662f\u5fc5\u987b\u7684\uff0c\u56e0\u4e3a\u5b83\u4eec\u7528\u4e8e\u7ba1\u7406Quorum\u76f8\u5173\u7684JavaScript\u5e93\u3002<\/p>\n<p>1. \u5b89\u88c5Go\u8bed\u8a00\u73af\u5883<\/p>\n<p>   \u4e0b\u8f7d\u5e76\u5b89\u88c5Go\u8bed\u8a00\uff0c\u53ef\u4ee5\u4eceGo\u5b98\u7f51\u83b7\u53d6\u6700\u65b0\u7248\u672c\u7684\u5b89\u88c5\u5305\u3002\u89e3\u538b\u5e76\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf`GOPATH`\u548c`PATH`\uff0c\u786e\u4fdd`go version`\u547d\u4ee4\u80fd\u6b63\u786e\u8f93\u51fa\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p>2. \u5b89\u88c5Node.js\u548cnpm<\/p>\n<p>   \u4f7f\u7528\u9002\u5408\u4f60\u7684Linux\u53d1\u884c\u7248\u7684\u5b89\u88c5\u547d\u4ee4\u6765\u5b89\u88c5Node.js\u548cnpm\uff0c\u8fd9\u6837\u53ef\u4ee5\u901a\u8fc7npm\u7ba1\u7406Javascript\u4f9d\u8d56\u3002<\/p>\n<h2><strong>\u4e8c\u3001\u83b7\u53d6Quorum\u6e90\u7801<\/strong><\/h2>\n<p>\u5b89\u88c5\u4e86\u5fc5\u8981\u7684\u4f9d\u8d56\u4e4b\u540e\uff0c\u63a5\u4e0b\u6765\u5c31\u662f\u83b7\u53d6Quorum\u7684\u6e90\u7801\u3002<\/p>\n<p>1. Clone Quorum\u6e90\u7801<\/p>\n<p>   \u4f7f\u7528Git\u514b\u9686Quorum\u7684\u5b98\u65b9\u4ed3\u5e93\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a`git clone https:\/\/github.com\/ConsenSys\/quorum.git`\u3002<\/p>\n<p>2. \u7f16\u8bd1Quorum<\/p>\n<p>   \u5207\u6362\u5230\u514b\u9686\u4e0b\u6765\u7684\u4ee3\u7801\u76ee\u5f55\u4e2d\uff0c\u8fd0\u884c`make all`\u547d\u4ee4\u7f16\u8bd1\u6e90\u7801\uff0c\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u5c06\u4f1a\u5b58\u653e\u5728`build\/bin`\u76ee\u5f55\u3002<\/p>\n<h2><strong>\u4e09\u3001\u521d\u6b65\u914d\u7f6eQuorum\u7f51\u7edc<\/strong><\/h2>\n<p>\u914d\u7f6eQuorum\u7f51\u7edc\u7684\u5173\u952e\u4f9d\u8d56\u4e8e\u521b\u5efaGenesis\u6587\u4ef6\u4ee5\u53ca\u7f51\u7edc\u8282\u70b9\u7684\u8bbe\u7f6e\u3002<\/p>\n<p>1. \u521b\u5efaGenesis\u533a\u5757\u914d\u7f6e<\/p>\n<p>   Genesis\u6587\u4ef6\u5b9a\u4e49\u4e86\u533a\u5757\u94fe\u7684\u521d\u59cb\u72b6\u6001\uff0c\u5305\u62ec\u8d26\u6237\u521d\u59cb\u4f59\u989d\u3001\u5408\u7ea6\u4fe1\u606f\u7b49\u3002\u4f7f\u7528Quorum\u63d0\u4f9b\u7684\u5de5\u5177\u6765\u751f\u6210\u8fd9\u4e00\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>2. \u8bbe\u7f6e\u7f51\u7edc\u8282\u70b9<\/p>\n<p>   \u6bcf\u4e2a\u7f51\u7edc\u6210\u5458\u90fd\u5e94\u6709\u81ea\u5df1\u7684\u4e00\u5bf9\u5bc6\u94a5\uff0c\u53ef\u4ee5\u4f7f\u7528`bootnode`\u5de5\u5177\u751f\u6210\u8282\u70b9\u7684\u5bc6\u94a5\u6587\u4ef6\u3002\u7136\u540e\u542f\u52a8\u8282\u70b9\uff0c\u914d\u7f6e`static-nodes.json`\u6765\u5b9a\u4e49\u8282\u70b9\u95f4\u7684\u7f51\u7edc\u8fde\u63a5\u3002<\/p>\n<h2><strong>\u56db\u3001\u8be6\u7ec6\u914d\u7f6eQuorum\u8282\u70b9<\/strong><\/h2>\n<p>\u7ee7\u7eed\u5bf9\u6bcf\u4e2aQuorum\u8282\u70b9\u8fdb\u884c\u8be6\u7ec6\u914d\u7f6e\uff0c\u4ee5\u786e\u4fdd\u7f51\u7edc\u7684\u6b63\u786e\u529f\u80fd\u3002<\/p>\n<p>1. \u914d\u7f6e\u8282\u70b9\u7684toml\u6587\u4ef6<\/p>\n<p>   `toml`\u914d\u7f6e\u6587\u4ef6\u4e2d\u5305\u542b\u4e86\u8bb8\u591a\u91cd\u8981\u7684\u8282\u70b9\u8bbe\u7f6e\uff0c\u6bd4\u5982\u7f51\u7edc\u76d1\u542c\u7aef\u53e3\u3001\u8fde\u63a5\u7684IP\u4ee5\u53ca\u8bb8\u591a\u4e0e\u5171\u8bc6\u3001\u540c\u6b65\u7b49\u76f8\u5173\u7684\u8bbe\u7f6e\u3002<\/p>\n<p>2. \u7ba1\u7406\u8d26\u6237\u548c\u8fde\u63a5<\/p>\n<p>   \u4f7f\u7528`geth`\u547d\u4ee4\u521b\u5efa\u8d26\u6237\uff0c\u5e76\u901a\u8fc7`geth attach`\u8fde\u63a5\u5230\u4f60\u7684\u8282\u70b9\u3002\u5728\u8fd9\u4e00\u9636\u6bb5\uff0c\u4f60\u53ef\u4ee5\u5f00\u59cb\u4e0e\u5176\u4ed6\u8282\u70b9\u901a\u4fe1\uff0c\u4f20\u9001\u4ea4\u6613\u3002<\/p>\n<h2><strong>\u4e94\u3001\u542f\u52a8\u548c\u6d4b\u8bd5Quorum\u7f51\u7edc<\/strong><\/h2>\n<p>\u6240\u6709\u914d\u7f6e\u5b8c\u6210\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8Quorum\u7f51\u7edc\uff0c\u68c0\u67e5\u662f\u5426\u4e00\u5207\u6309\u7167\u9884\u671f\u8fd0\u884c\u3002<\/p>\n<p>1. \u542f\u52a8\u8282\u70b9<\/p>\n<p>   \u6267\u884c\u7f16\u8bd1\u597d\u7684`geth`\u547d\u4ee4\uff0c\u643a\u5e26\u6b63\u786e\u7684Genesis\u6587\u4ef6\u548c\u5176\u4ed6\u542f\u52a8\u53c2\u6570\uff0c\u6765\u542f\u52a8\u4f60\u7684Quorum\u8282\u70b9\u3002<\/p>\n<p>2. \u8fdb\u884c\u4ea4\u6613\u6d4b\u8bd5<\/p>\n<p>   \u4f7f\u7528Quorum\u8282\u70b9\u4e4b\u95f4\u8fdb\u884c\u4ea4\u6613\u6d4b\u8bd5\uff0c\u786e\u8ba4\u7f51\u7edc\u72b6\u6001\u6b63\u5e38\u3002\u4f60\u53ef\u4ee5\u7f16\u5199\u7b80\u5355\u7684\u667a\u80fd\u5408\u7ea6\uff0c\u90e8\u7f72\u5230Quorum\u7f51\u7edc\u4e2d\u6d4b\u8bd5\u6267\u884c\u3002<\/p>\n<h2><strong>\u516d\u3001\u5b89\u5168\u6027\u548c\u9ad8\u7ea7\u914d\u7f6e<\/strong><\/h2>\n<p>\u4e3a\u4e86\u786e\u4fddQuorum\u5e73\u53f0\u7684\u5b89\u5168\u6027\uff0c\u4f60\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u9ad8\u7ea7\u914d\u7f6e\u3002<\/p>\n<p>1. \u5b89\u5168\u8bbe\u7f6e<\/p>\n<p>   \u4f7f\u7528TLS\u52a0\u5bc6\u8282\u70b9\u901a\u4fe1\u3001\u9650\u5236API\u7684\u8bbf\u95ee\u6743\u9650\u3001\u4e3aRPC\u63a5\u53e3\u8bbe\u7f6e\u8ba4\u8bc1\u673a\u5236\u7b49\uff0c\u6765\u63d0\u5347\u7f51\u7edc\u7684\u5b89\u5168\u6027\u3002<\/p>\n<p>2. \u6027\u80fd\u4f18\u5316<\/p>\n<p>   \u6839\u636e\u9700\u8981\u8c03\u6574\u5185\u5b58\u3001\u7f13\u5b58\u5927\u5c0f\u4ee5\u53ca\u533a\u5757\u751f\u6210\u65f6\u95f4\u95f4\u9694\u7b49\u53c2\u6570\uff0c\u6765\u4f18\u5316\u7f51\u7edc\u7684\u6027\u80fd\u3002<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u516d\u4e2a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5728Linux\u7cfb\u7edf\u4e0a\u6210\u529f\u5b89\u88c5\u548c\u914d\u7f6eQuorum\u533a\u5757\u94fe\u5e73\u53f0\u3002\u6bcf\u4e00\u6b65\u90fd\u8981\u4ed4\u7ec6\u64cd\u4f5c\uff0c\u4ece\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u5f00\u59cb\uff0c\u5230\u8be6\u7ec6\u7684\u8282\u70b9\u914d\u7f6e\u548c\u7f51\u7edc\u542f\u52a8\uff0c\u786e\u4fdd\u6bcf\u9879\u8bbe\u7f6e\u90fd\u5408\u7406\u4e14\u51c6\u786e\u65e0\u8bef\u3002\u5b89\u5168\u6027\u914d\u7f6e\u662f\u81f3\u5173\u91cd\u8981\u7684\u6b65\u9aa4\uff0c\u5b83\u4fdd\u969c\u7f51\u7edc\u4e0d\u4f1a\u53d7\u5230\u672a\u6388\u6743\u8bbf\u95ee\u7684\u5a01\u80c1\u3002\u6700\u540e\uff0c\u8fdb\u884c\u6027\u80fd\u4f18\u5316\u4ee5\u786e\u4fdd\u7f51\u7edc\u9ad8\u6548\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u5982\u4f55\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Quorum\u533a\u5757\u94fe\u5e73\u53f0\uff1f<\/strong><\/p>\n<p>\u8981\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Quorum\u533a\u5757\u94fe\u5e73\u53f0\uff0c\u9996\u5148\u9700\u8981\u4e0b\u8f7dQuorum\u7684\u5b89\u88c5\u6587\u4ef6\u5e76\u89e3\u538b\u3002\u7136\u540e\uff0c\u6839\u636e\u5b98\u65b9\u6587\u6863\u63d0\u4f9b\u7684\u6307\u5f15\uff0c\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u76f8\u5e94\u7684\u547d\u4ee4\u6765\u5b8c\u6210\u5b89\u88c5\u8fc7\u7a0b\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u7279\u5b9a\u547d\u4ee4\u6765\u9a8c\u8bc1Quorum\u662f\u5426\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5728Linux\u4e0a\u5982\u4f55\u914d\u7f6eQuorum\u533a\u5757\u94fe\u5e73\u53f0\u4ee5\u5b9e\u73b0\u8282\u70b9\u4e4b\u95f4\u7684\u901a\u4fe1\uff1f<\/strong><\/p>\n<p>\u8981\u5728Linux\u4e0a\u914d\u7f6eQuorum\u533a\u5757\u94fe\u5e73\u53f0\u4ee5\u5b9e\u73b0\u8282\u70b9\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u9996\u5148\u9700\u8981\u7f16\u8f91Quorum\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u6307\u5b9a\u8282\u70b9\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u6bd4\u5982\u8282\u70b9\u7684IP\u5730\u5740\u548c\u7aef\u53e3\u53f7\u7b49\u3002\u7136\u540e\uff0c\u5728\u6bcf\u4e2a\u8282\u70b9\u4e0a\u542f\u52a8Quorum\u670d\u52a1\uff0c\u5e76\u786e\u4fdd\u8282\u70b9\u4e4b\u95f4\u80fd\u591f\u4e92\u76f8\u8fde\u63a5\u3002\u53ef\u4ee5\u4f7f\u7528\u7f51\u7edc\u76d1\u63a7\u5de5\u5177\u6765\u9a8c\u8bc1\u8282\u70b9\u4e4b\u95f4\u7684\u901a\u4fe1\u662f\u5426\u7545\u901a\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e2d\u8bbe\u7f6eQuorum\u533a\u5757\u94fe\u5e73\u53f0\u7684\u6743\u9650\u548c\u5b89\u5168\u6027\uff1f<\/strong><\/p>\n<p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u6587\u4ef6\u6743\u9650\u548c\u8bbe\u7f6e\u9632\u706b\u5899\u89c4\u5219\u7b49\u65b9\u5f0f\u6765\u63d0\u9ad8Quorum\u533a\u5757\u94fe\u5e73\u53f0\u7684\u5b89\u5168\u6027\u3002\u53ef\u4ee5\u521b\u5efa\u4e13\u95e8\u7684\u7528\u6237\u7ec4\u6765\u7ba1\u7406Quorum\u76f8\u5173\u7684\u6587\u4ef6\u548c\u8fdb\u7a0b\uff0c\u4ee5\u9632\u6b62\u672a\u7ecf\u6388\u6743\u7684\u8bbf\u95ee\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528SSL\u8bc1\u4e66\u6765\u52a0\u5bc6\u8282\u70b9\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u589e\u5f3a\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\u6027\u3002\u6700\u91cd\u8981\u7684\u662f\u5b9a\u671f\u66f4\u65b0Quorum\u5e73\u53f0\u4ee5\u4fee\u8865\u53ef\u80fd\u5b58\u5728\u7684\u5b89\u5168\u6f0f\u6d1e\uff0c\u786e\u4fdd\u7cfb\u7edf\u7684\u7a33\u5b9a\u548c\u5b89\u5168\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Linux\u4e2d\u5b89\u88c5\u548c\u914d\u7f6eQuorum\u533a\u5757\u94fe\u5e73\u53f0\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u5b89\u88c5\u4e86\u5fc5\u8981\u7684\u4f9d\u8d56\u3001\u6bd4\u5982Go\u8bed\u8a00\u73af\u5883\u3001Nod [&hellip;]","protected":false},"author":1,"featured_media":84201,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[384],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/84200"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=84200"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/84200\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/84201"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=84200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=84200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=84200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}