当我尝试启动 ejabberd 服务时,它总是崩溃。
Starting jabber server: ejabberd
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
.
我已经更改了服务器的 hostanme,在此之前它工作正常,但是在配置中我有:
{hosts, ["localhost", "private.localhost", "public.localhost"]}.
我认为您不能简单地更改主机名,因为 Erlang/ejabberd 对此有问题。
试试这个方法(大锤式)
ejabberdctl backup /tmp/ejabberd_bkp
(如果选择其他输出目录,可能会出现权限问题)ejabberdctl restore /tmp/ejabberd_bkp