在 Node-Red 中运行两个实例:安装替代版本 [英] Run two instances in Node-Red: install alternative version

查看:80
本文介绍了在 Node-Red 中运行两个实例:安装替代版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在同一台笔记本电脑上运行 2 个 Node-Red 实例.我找到了这个分支:https://github.com/aryeharmon/node-red在这篇文章中,作者提供了一些信息:How在 node app 中嵌入 node-red 的多个实例

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

我不知道如何安装他的叉子.我是否必须像使用经典版本的 Node-Red 一样下载并安装它?还要别的吗?这是我第一次尝试使用叉子,提前致谢.

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.

推荐答案

你不需要安装 node-red 的 fork 来支持运行多个实例.

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

当您运行 node-red 时,您可以通过命令行选项指定它将使用的设置文件和用户数据目录:

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.

这篇关于在 Node-Red 中运行两个实例:安装替代版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆