在 erlang/OTP 中,如何启动 appmon 来监视现有节点?

发布于 2024-07-27 18:36:32 字数 297 浏览 1 评论 0原文

我有一个正在运行的 erlang 应用程序,使用此命令行启动

erl -boot start_sasl -config config/cfg_qa -detached -name peasy -cookie peasy -pa ./ebin -pa ./ebin/mochiweb -s peasy start

如果我启动一个新节点并运行 appmon:start(),即使使用相同的 cookie,“peasy”节点也不会显示。 webtool:start() 也会发生同样的情况

有人吗?

I have a running erlang application, launched with this command line

erl -boot start_sasl -config config/cfg_qa -detached -name peasy -cookie peasy -pa ./ebin -pa ./ebin/mochiweb -s peasy start

If I start a new node and run appmon:start(), the 'peasy' node won't show up, even if using the same cookie. The same happens with webtool:start()

Anyone?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千年*琉璃梦 2024-08-03 18:36:32

成立。

与 erlang 一样,要让两个节点相互通信,您需要 ping:

1> net_adm:ping(other_node_you_want_to_monitor).
pong
2> appmon:start().
{ok,<0.48.0>}

然后就可以了:)

Found.

As always with erlang, to have two nodes speak to each other, you need to ping:

1> net_adm:ping(other_node_you_want_to_monitor).
pong
2> appmon:start().
{ok,<0.48.0>}

And off you go :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文