【问题标题】:Linux server xmpp ejabberd start ,status not running?Linux 服务器 xmpp ejabberd 启动,状态未运行?
【发布时间】:2018-06-15 19:05:32
【问题描述】:

我正在使用具有 SSH 访问权限的服务器。我正在尝试使用命令安装 ejabberd,但它不起作用。我设法在没有 sudo 的情况下安装它。安装我关注these steps

现在运行 ejabberd 的主要问题,启动 ejabberd 时出错:

$ ./ejabberdctl start
/home/sancm/ejabberd/bin/erl: fork: Cannot allocate memory
/home/sancm/ejabberd/bin/erl: fork: Cannot allocate memory

$ ./ejabberdctl status
./ejabberdctl: fork: Cannot allocate memory
/home/sanchr5m/ejabberd/bin/erl: fork: Cannot allocate memory
/home/sanchr5m/ejabberd/bin/erl: fork: Cannot allocate memory
Failed to create thread: Resource temporarily unavailable (11)
./ejabberdctl: line 125: 3009909 Aborted 
"$@"

在我的服务器 apt-get 和 sudo 上,su 不工作。我不知道为什么。

free -m

             total       used       free     shared    buffers     cached
Mem:         32043      29812       2230         19       3624      10701
-/+ buffers/cache:      15486      16556
Swap:         4095       1405       2690

【问题讨论】:

    标签: ubuntu server xmpp cpanel ejabberd


    【解决方案1】:

    您不需要 root 访问权限来安装和启动 ejabberd。试试这个:

    $ ./configure --enable-user --prefix=/tmp/aa
    $ make
    $ make install
    $ cd /tmp/aa
    $ ./sbin/ejabberdctl live
    ...
    13:02:34.457 [info] ejabberd 18.04.71 is started in the node ejabberd@localhost in 5.67s
    13:02:34.459 [info] Application ejabberd started on node ejabberd@localhost
    13:02:34.459 [info] Start accepting TCP connections at [::]:5280 for ejabberd_http
    13:02:34.460 [info] Start accepting TCP connections at [::]:5269 for ejabberd_s2s_in
    13:02:34.460 [info] Start accepting TCP connections at [::]:5222 for ejabberd_c2s
    

    【讨论】:

      猜你喜欢
      • 2016-02-19
      • 2018-06-05
      • 2015-11-05
      • 2016-02-09
      • 2015-02-13
      • 2016-09-21
      • 2020-11-17
      • 2012-07-18
      • 2012-04-06
      相关资源
      最近更新 更多