{"id":11900,"date":"2023-03-03T14:04:41","date_gmt":"2023-03-03T06:04:41","guid":{"rendered":"https:\/\/www.modbus.cn\/?p=11900"},"modified":"2026-07-01T00:27:06","modified_gmt":"2026-06-30T16:27:06","slug":"zai-flowforge-zhong-de-ru-he-guan-li-yuan-cheng-she-bei-an-zhuang-dai-li-gong-ju-ji-pei-zhi","status":"publish","type":"post","link":"https:\/\/www.modbus.cn\/en\/11900.html","title":{"rendered":"\u5728FlowForge\u4e2d\u7684\u5982\u4f55\u7ba1\u7406\u8fdc\u7a0b\u8bbe\u5907\uff0c\u5b89\u88c5\u4ee3\u7406\u5de5\u5177\u53ca\u914d\u7f6e\u8bc1\u4e66"},"content":{"rendered":"<h2 class=\"wp-block-heading\">FlowForge\u4e2d\u7684\u8bbe\u5907<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">FlowForge\u5e73\u53f0\u9664\u4e86\u53ef\u4ee5\u521b\u5efa\u591a\u4e2aNode-RED\u5b9e\u4f8b\uff0c\u8fd8\u53ef\u4ee5\u7528\u6765\u7ba1\u7406\u8fdc\u7a0b\u8bbe\u5907\u3002\u53ea\u9700\u8981\u5728\u8bbe\u5907\u4e0a\u5b89\u88c5\u5b98\u65b9\u63d0\u4f9b\u7684\u5de5\u5177\u5305\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u94fe\u63a5\u5230\u5e73\u53f0\uff0c\u5e76\u63a5\u53d7\u5e73\u53f0\u7684\u6307\u4ee4\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u4ecb\u7ecd\u4e00\u4e0b\u5982\u4f55\u7ba1\u7406\u8fdc\u7a0b\u8bbe\u5907<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>\u5b89\u88c5\u8bbe\u5907\u4ee3\u7406\u5de5\u5177\u5305<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b98\u65b9\u63d0\u4f9b\u7684\u8bbe\u5907\u4ee3\u7406\u5de5\u5177\u5305\u662f\u4e00\u4e2a\u516c\u5f00\u7684npm\u4ed3\u5e93,<a href=\"https:\/\/www.npmjs.com\/package\/@flowforge\/flowforge-device-agent\" rel=\"noopener noreferrer nofollow\">@flowforge\/flowforge-device-agent<\/a>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u4e86\u65b9\u4fbf\u4f7f\u7528\uff0c\u4f60\u53ef\u4ee5\u5c06\u5b83\u5168\u5c40\u5b89\u88c5\u5728\u8fdc\u7a0b\u8bbe\u5907\u4e0a\u3002<br>\u5b89\u88c5\u547d\u4ee4<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">sudo npm install -g @flowforge\/flowforge-device-agent\n<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u60f3\u8981\u4f7f\u7528Docker\u5bb9\u5668\uff0c\u800c\u4e0d\u662f\u4e00\u4e2anpm\u5305\uff0c\u90a3\u4e48\u5728\u8fd0\u884c\u5bb9\u5668\u662f\uff0c\u9700\u8981\u6302\u8f7d<code>device.yaml<\/code>\u6587\u4ef6\uff0c\u4ee5\u6b64\u53ef\u4ee5\u5b58\u53d6\u6ce8\u518c\u7684\u8bbe\u5907\u6570\u636e\u3002<br>\u4f7f\u7528Docker\u6765\u5b89\u88c5\u8bbe\u5907\u4ee3\u7406\u5de5\u5177\u7684\u547d\u4ee4\u5982\u4e0b<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">docker run --mount \/path\/to\/device.yml:\/opt\/flowforge\/device.yaml -p 1880:1880 flowforge\/device-agent:latest\n<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>\u914d\u7f6e<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>\u5de5\u4f5c\u76ee\u5f55<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bbe\u5907\u4ee3\u7406\u5de5\u5177\u9ed8\u8ba4\u7684\u5de5\u4f5c\u76ee\u5f55\u662f<code>\/opt\/flowforge-device<\/code>.<br>\u5982\u679c\u4f60\u60f3\u8981\u8986\u76d6\u5b83\u53ef\u4ee5\u4f7f\u7528<code>-d\/--dir<\/code>\u53c2\u6570\u6765\u8986\u76d6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\u610f\uff0c\u6307\u5b9a\u7684\u76ee\u5f55\u5fc5\u987b\u5b58\u5728\uff0c\u5e76\u4e14\u5bf9\u5f53\u524d\u7528\u6237\u6709\u6743\u9650\u8fd0\u884c\u4ee3\u7406\u5de5\u5177\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u521b\u5efa\u5de5\u4f5c\u76ee\u5f55\u7684\u547d\u4ee4\u548c\u8d4b\u6743\u9650\u7684\u547d\u4ee4\u3002<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">sudo mkdir \/opt\/flowforge-device\nsudo chown -R $USER \/opt\/flowforge-device\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><a><\/a>\u76d1\u542c\u7aef\u53e3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Node-RED \u5b9e\u4f8b\u9ed8\u8ba4\u662f\u4f7f\u7528<code>1880<\/code>\u7aef\u53e3\uff0c\u5728\u4ee3\u7406\u8bbe\u5907\u5de5\u5177\u4e2d\u4f60\u53ef\u4ee5\u4fee\u6539\u8fd9\u4e00\u914d\u7f6e\uff0c\u901a\u8fc7\u4f7f\u7528\u53c2\u6570<code>-p\/--port<\/code>\u6765\u6307\u5b9a\u4e00\u4e2a\u7aef\u53e3\u53f7\u3002\u8fd9\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u9632\u706b\u5899\u89c4\u5219\u5f88\u6709\u7528\uff0c\u5f53\u4e00\u4e2a\u8bbe\u5907\u4e0a\u6709\u5f88\u591a\u5b9e\u4f8b\u65f6\u4e5f\u5f88\u6709\u7528\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6307\u5b9a\u7aef\u53e3\u7684\u547d\u4ee4<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">flowforge-device-agent --port=1881\n<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>\u6ce8\u518c\u8bbe\u5907<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u4e86\u8ba9\u4e00\u4e2a\u8bbe\u5907\u94fe\u63a5\u5230FF\u5e73\u53f0\uff0c\u4f60\u9700\u8981\u4e3a\u8bbe\u5907\u8bbe\u7f6e\u4e00\u4e2a\u8bc1\u4e66\u3002<br>\u5728FF\u5e73\u53f0\u6709\u4e24\u79cd\u7c7b\u578b\u7684\u6574\u6570<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bbe\u5907\u8bc1\u4e66\uff0c\u7528\u4e8e\u5355\u4e2a\u8bbe\u5907\u94fe\u63a5\u5230\u5e73\u53f0<\/li>\n\n\n\n<li>\u9884\u914d\u8bc1\u4e66\uff0c\u7528\u4e8e\u8bbe\u7f6e\u4e00\u4e2a\u6216\u591a\u4e2a\u8bbe\u5907\u6279\u91cf\u6ce8\u518c\u5230FF\u5e73\u53f0\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bbe\u5907\u8bc1\u4e66\u53ef\u4ee5\u5728\u8bbe\u5907\u7ba1\u7406\u9875\u9762\u8fdb\u884c\u751f\u6210\u3002<br>\u9884\u914d\u8bc1\u4e66\u53ef\u4ee5\u5728\u56e2\u961f\u7684\u8bbe\u7f6e\u9875\u9762\uff0c\u8bbe\u5907Tab\u4e0b\u751f\u6210\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>\u8fde\u63a5\u8bbe\u5907<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528\u8bbe\u5907\u8bc1\u4e66\u6765\u94fe\u63a5FF\u5e73\u53f0\uff0c\u9700\u8981\u5c06\u8bbe\u5907\u8bc1\u4e66\u7684\u5185\u5bb9\u62f7\u8d1d\u5230<code>device.yml<\/code>\u4e2d\uff0c\u8be5\u6587\u4ef6\u4e00\u822c\u662f\u5b58\u653e\u5728<code>\/opt\/flowforge-device<\/code>\u3002<br>\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">flowforge-device-agent\n<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u4f60\u5c31\u53ef\u4ee5\u770b\u5230\u8bbe\u5907\u5df2\u7ecf\u94fe\u63a5\u5230FF\u5e73\u53f0\u5566\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u9884\u914d\u8bc1\u4e66\uff0c\u90a3\u4e48\u4f60\u4e5f\u9700\u8981\u5c06\u9884\u914d\u8bc1\u4e66\u590d\u5236\u5230<code>device.yml<\/code>\u6587\u4ef6\u4e2d\u3002\u7136\u540e\u8fd0\u884c\u548c\u4e0a\u9762\u76f8\u540c\u7684\u6307\u4ee4\u3002<br>\u9884\u914d\u8bc1\u4e66\u4f7f\u7528\u8fc7\u540e\uff0c\u5c31\u4e0d\u80fd\u518d\u4f7f\u7528\u5566\uff0c\u5c06\u88ab\u65b0\u7684\u8bbe\u5907\u8bc1\u4e66\u8986\u76d6\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>\u5728\u65e0\u6cd5\u8bbf\u95ee npmjs.org \u7684\u60c5\u51b5\u4e0b\u8fd0\u884c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8bbe\u5907\u4ee3\u7406\u5c06\u5c1d\u8bd5\u4e0b\u8f7d\u6b63\u786e\u7248\u672c\u7684 Node-RED \u548c \u8fd0\u884c\u5206\u914d\u5728\u8bbe\u5907\u4e0a\u8fd0\u884c\u7684\u9879\u76ee\u5feb\u7167\u6240\u9700\u7684\u4efb\u4f55\u8282\u70b9\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u8bbe\u5907\u5728\u8131\u673a\u7f51\u7edc\u4e0a\u8fd0\u884c\uff0c\u6216\u8005\u5b89\u5168\u7b56\u7565\u963b\u6b62 \u8bbe\u5907\u4ee3\u7406\u4ece\u8fde\u63a5\u5230 npmjs.org \u7136\u540e\u53ef\u4ee5\u914d\u7f6e\u4e3a\u4f7f\u7528\u9884\u7f13\u5b58 \u6a21\u5757\u96c6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u5230\u6dfb\u52a0\u5230\u6587\u4ef6\u7684\u547d\u4ee4\u884c\u6765\u542f\u7528\u6b64\u6a21\u5f0f\u3002\u8fd9\u5c06\u5bfc\u81f4\u8bbe\u5907\u4ee3\u7406\u4ece\u8bbe\u5907\u4ee3\u7406\u914d\u7f6e\u76ee\u5f55\u4e2d\u7684\u76ee\u5f55\u52a0\u8f7d\u6a21\u5757\uff0c\u5982\u4e0a\u6240\u8ff0\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8fd9\u5c06\u4e3a \u3002-mmoduleCache: truedevice.ymlmodule_cache\/opt\/flowforge-device\/module_cache<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a><\/a>\u521b\u5efa\u6a21\u5757\u7f13\u5b58<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8981\u521b\u5efa\u5408\u9002\u7684\u6a21\u5757\u7f13\u5b58\uff0c\u60a8\u9700\u8981\u5728\u672c\u5730\u8bbe\u5907\u4e0a\u5b89\u88c5 \u8bbf\u95ee npmjs.org\uff0c\u786e\u4fdd\u60a8\u4f7f\u7528\u4e0e\u76ee\u6807\u76f8\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u67b6\u6784 \u8bbe\u5907\uff0c\u7136\u540e\u5c06\u6a21\u5757\u590d\u5236\u5230\u8bbe\u5907\u4e0a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u201c\u9879\u76ee\u5feb\u7167\u201d\u9875\u9762\u4e2d\uff0c\u9009\u62e9\u8981\u90e8\u7f72\u7684\u5feb\u7167\uff0c\u7136\u540e\u9009\u62e9\u4e0b\u8f7d\u5176\u6587\u4ef6\u7684\u9009\u9879\u3002<code>package.json<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u6b64\u6587\u4ef6\u653e\u5728\u672c\u5730\u8bbe\u5907\u4e0a\u7684\u7a7a\u76ee\u5f55\u4e2d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884cnpm install\u5b89\u88c5\u6a21\u5757\u3002\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\u3002<code>node_modules<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u76ee\u6807\u8bbe\u5907\u4e0a\uff0c\u521b\u5efa\u5728\u8bbe\u5907\u4ee3\u7406\u914d\u7f6e\u76ee\u5f55\u4e2d\u8c03\u7528\u7684\u76ee\u5f55\u3002<code>module_cache<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u76ee\u5f55\u4ece\u672c\u5730\u8bbe\u5907\u590d\u5236\u5230\u76ee\u6807\u8bbe\u5907\uff0c\u4f7f\u5176\u4f4d\u4e8e\u8be5\u76ee\u5f55\u4e0b\u3002node_modulesmodule_cache<\/p>\n<span id=\"magicpostMarker\"><\/span>","protected":false},"excerpt":{"rendered":"<p>FlowForge\u4e2d\u7684\u8bbe\u5907 FlowForge\u5e73\u53f0\u9664\u4e86\u53ef\u4ee5\u521b&#8230;<\/p>","protected":false},"author":106,"featured_media":27977,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[1381],"tags":[1403],"class_list":["post-11900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-node-red","tag-node-red"],"_links":{"self":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts\/11900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/comments?post=11900"}],"version-history":[{"count":0,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts\/11900\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/media\/27977"}],"wp:attachment":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/media?parent=11900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/categories?post=11900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/tags?post=11900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}