如何在erlang中的远程节点上运行pman?

时间:2010-12-30 10:19:54

标签: erlang

我需要调试我的ejabberd服务器,我想为此目的使用pman。但我只能通过ssh和服务器在屏幕上工作。

我做:

ssh mydoman@example.com

erl -sname test@localhost
(test@localhost)1> pman:start().
<0.123.0>

and it works but I need get access to 'ejabberd@localhost' node from same machine

now I press Ctrl+G
--> r'ejabberd@localhos'
--> c

(ejabberd@localhost)1> pman:start().
** exited: {startup_timeout,pman} **

我的问题是 - 如何正确运行pman?

2 个答案:

答案 0 :(得分:3)

Pman需要访问运行它的屏幕。我知道你在两个节点上运行分布式erlang,并且它们是相互连接的并且相互了解。最简单的方法是在您的节点pman上本地运行pman:start()。有一个Nodes菜单应包含所有已知节点,如果选择ejabbered@localhost,您应该会看到该节点上的所有进程。

答案 1 :(得分:0)

不确定pman,但是如果你想监视一个远程节点,我就为此创建了entop。它可能与pman完全不同,但应该足够接近。

https://github.com/mazenharake/entop

相关问题