我正在使用具有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
答案 0 :(得分: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