Erlang:如何同时运行多个版本?
是否可以让 rebar 创建的多个版本同时运行?我有一台服务器,我想同时运行不同的版本来测试它们。问题是当我这样做时:
rel/myapp_a/bin/myapp_a stop
它设法停止正在运行 myapp_b
的虚拟机
我如何让它们作为自己的实体运行那互不干扰?
Is it possible to have multiple releases created by rebar to run at the same time? I have one server where I'd like to run different releases simultaneously to test them out. The problem is when I do:
rel/myapp_a/bin/myapp_a stop
It manages to stop my VM which is running myapp_b
How do I get them to run as their own entities that do not interfere with each other?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,我将检查两个节点是否相互连接:
在一个或每个节点上运行
并确保列表为空或仅包含应该连接的其他节点。
通过调用 netadm:ping/1 检查节点是否可以连接尝试连接节点。如果它们可以连接并且不应该确保使用不同的 cookie 运行它们。
First I would check if the two nodes are connected to each other:
On one or each of the nodes run
and make sure the list is empty or only containing other nodes that are supposed to be connected.
Check if the nodes can be connected at all by calling netadm:ping/1 and try to connect the nodes. If they can be connected and shouldn't make sure to run them with different cookies.