玩转ejabberd一

一、可以通过ejabberdctl debug 看.app的内容
([email protected])8> application:get_all_key(ejabberd).
{ok,[{description,"ejabberd"},
     {id,[]},
     {vsn,"2.1.6"},
     {modules,[acl,adhoc,configure,cyrsasl_anonymous,cyrsasl,
               cyrsasl_digest,cyrsasl_plain,ejabberd_admin,ejabberd_app,
               ejabberd_auth_anonymous,ejabberd_auth,
               ejabberd_auth_external,ejabberd_auth_internal,
               ejabberd_auth_ldap,ejabberd_auth_odbc,ejabberd_auth_pam,
               ejabberd,ejabberd_c2s,ejabberd_c2s_config,ejabberd_config,
               ejabberd_ctl|...]},
     {maxP,infinity},
     {maxT,infinity},
     {registered,[ejabberd,ejabberd_sup,ejabberd_auth,
                  ejabberd_router,ejabberd_sm,ejabberd_s2s,ejabberd_local,
                  ejabberd_listeners,ejabberd_iq_sup,ejabberd_service_sup,
                  ejabberd_s2s_out_sup,ejabberd_s2s_in_sup,ejabberd_c2s_sup,
                  ejabberd_mod_roster,ejabberd_mod_echo,ejabberd_mod_pubsub,
                  ejabberd_mod_irc,ejabberd_mod_muc|...]},
     {included_applications,[]},
     {applications,[kernel,stdlib]},
     {env,[{included_applications,[]}]},
     {mod,{ejabberd_app,[]}},
     {start_phases,undefined}]}
([email protected])9> element(2,application:get_all_key(ejabberd)).
[{description,"ejabberd"},
 {id,[]},
 {vsn,"2.1.6"},
 {modules,[acl,adhoc,configure,cyrsasl_anonymous,cyrsasl,
           cyrsasl_digest,cyrsasl_plain,ejabberd_admin,ejabberd_app,
           ejabberd_auth_anonymous,ejabberd_auth,
           ejabberd_auth_external,ejabberd_auth_internal,
           ejabberd_auth_ldap,ejabberd_auth_odbc,ejabberd_auth_pam,
           ejabberd,ejabberd_c2s,ejabberd_c2s_config,ejabberd_config,
           ejabberd_ctl,ejabberd_frontend_socket,ejabberd_hooks|...]},
 {maxP,infinity},
 {maxT,infinity},
 {registered,[ejabberd,ejabberd_sup,ejabberd_auth,
              ejabberd_router,ejabberd_sm,ejabberd_s2s,ejabberd_local,
              ejabberd_listeners,ejabberd_iq_sup,ejabberd_service_sup,
              ejabberd_s2s_out_sup,ejabberd_s2s_in_sup,ejabberd_c2s_sup,
              ejabberd_mod_roster,ejabberd_mod_echo,ejabberd_mod_pubsub,
              ejabberd_mod_irc,ejabberd_mod_muc,ejabberd_offline,
              random_generator]},
 {included_applications,[]},
 {applications,[kernel,stdlib]},
 {env,[{included_applications,[]}]},
 {mod,{ejabberd_app,[]}},
 {start_phases,undefined}]

二、通过本地xp操作系统建立无盘节点聚群ejabberd服务器可以用tv查询数据
可以在服务器通过ejabberdctl debug 获得cookie命令如下:
ejabberdctl debug
([email protected])23> erlang:get_cookie().
'PLJYPDSGDFWQMTKCIPKR'

在windows下面执行
erl -name [email protected] -setcoookie PLJYPDSGDFWQMTKCIPKR
然后执行net_adm:ping('[email protected]').
tv:start().
就可以看服务端ejabberd节点的数据了。o(∩_∩)o 哈哈



你可能感兴趣的:(windows,.net,socket,erlang,XP)