Run two instances in Node-Red: install alternative version

大城市里の小女人 提交于 2020-01-06 05:29:08

问题


I need to run 2 instances of Node-Red on the same laptop. I found this fork: https://github.com/aryeharmon/node-red In this post the author gave some information: How to embed multiple instances of node-red in node app

I don't know how to install his fork. Do i have to download and install it as i did with the classic version of Node-Red? Anything else? It's the first time i try to use a fork, thanks in advance.


回答1:


You do not need to install a fork of node-red to support running multiple instances.

When you run node-red you can specify what settings file and user data directory it will use via the command-line options:

node-red -s /data/userDirectory/settingsFile.js -u /data/userDirectory

Give each instance its own settings and user data directory - specifying a different port to listen on in the settings file.



来源:https://stackoverflow.com/questions/48814470/run-two-instances-in-node-red-install-alternative-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!