Здравствуйте!
ejabberd запущен так:
# ps aux | grep ejabber
ejabberd 16635 0.0 1.7 13596 8948 pts/0 S 14:00 0:02 /usr/lib/erlang/erts-5.4.12/bin/beam -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd -pa /var/lib/ejabberd/ebin -sname ejabberd -s ejabberd -ejabberd config "/etc/ejabberd/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" -sasl sasl_
ejabberd 16643 0.0 0.0 1184 368 ? S 14:00 0:00 heart -pid 16635
ejabberd 16648 0.0 0.2 2724 1032 ? S 14:00 0:00 /usr/lib/erlang/lib/ssl-3.0.10/priv/bin/ssl_esock
root 19722 0.0 0.0 1372 436 pts/0 S 14:48 0:00 grep ejab
Добавить пользователя admin я не могу:
ejabberdctl register admin ats-manager admpwd
Can't register user "admin@ats-manager" at node 'ejabberd@ats-manager': {'EXIT',
{badarg,
[{erlang,
port_control,
[stringprep_port,
1,
"ats-manager"]},
{stringprep,
control,
2},
{jlib,
nameprep,
1},
{ejabberd_auth,
try_register,
3},
{rpc,
'-handle_call/3-fun-0-',
5}]}}
Подключиться с помощью Gaim я тоже не могу, возможно потому, что на порту 5222 никого нет:
# netstat -pan --inet | grep beam
tcp 0 0 0.0.0.0:53866 0.0.0.0:* LISTEN 16635/beam
tcp 0 0 127.0.0.1:53867 127.0.0.1:4369 ESTABLISHED 16635/beam
А о 53866 нигде ничего не написано:
# grep 53866 /etc/services
# grep 53866 /etc/ejabberd/ejabberd.cfg
#
В /etc/ejabberd/ejabberd.cfg написано следующее:
{acl, local, {user_regexp, ""}}.
{access, configure, [{allow, admin}]}.
{welcome_message, none}.
{access, announce, [{allow, admin}]}.
{access, c2s, [{deny, blocked},
{allow, all}]}.
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
{access, c2s_shaper, [{none, admin},
{normal, all}]}.
{access, s2s_shaper, [{fast, all}]}.
{access, muc_admin, [{allow, admin}]}.
{access, muc, [{allow, all}]}.
{access, local, [{allow, local}]}.
{auth_method, internal}.
{hosts, ["ats-manager"]}.
{language, "en"}.
{listen,
[{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},
starttls, {certfile, "./ssl.pem"}]},
]}.
{modules,
[
{mod_register, [{access, register}]},
{mod_roster, []},
{mod_privacy, []},
{mod_configure, []},
{mod_configure2, []},
{mod_disco, []},
{mod_stats, []},
{mod_vcard, []},
{mod_offline, []},
{mod_announce, [{access, announce}]},
{mod_echo, [{host, "echo.localhost"}]},
{mod_private, []},
{mod_muc, [{access, muc},
{access_create, muc},
{access_admin, muc_admin}]},
{mod_pubsub, []},
{mod_time, []},
{mod_last, []},
{mod_version, []}
]}.
Как лечить?