ejabberd

来自百合仙子's Wiki
跳转到导航 跳转到搜索

ejabberd 是一个用 Erlang 写的 XMPP 服务端程序,极权协议为 GPLv2。

配置

Set your hostname

Find the line that says {hosts, ["localhost"]}. and change localhost to the hostname you want your Jabber server to use. This is what appears behind the @ sign in Jabber IDs; it's not necessarily the physical hostname of the machine. Set up admin users

Add one or several lines of the form {acl, admin, {user, "username", "example.com"}}. in the configuration. This means that the user username@example.com can configure the server in various ways through a Jabber client or through the web interface.

Note: In the default configuration, account registration is free. This means that someone could register this account just after you start the server, and thus become server administrator. If you are worried about that, do the following step, stop the server, and then do this step.

建立管理员用户

启动 ejabberd,使用 XMPP 客户端在服务器上创建在上一步中指定的管理员用户。

使用 Web 界面

在浏览器中打开地址 http://localhost:5280/admin/ ,使用完整的 JID 和密码登录。

MUC

历史消息数使用 {history_size, Size} 来定义。[1]

文件

  • 配置文件 /etc/ejabberd/ejabberd.cfg (普通用户不可读)
  • 日志文件 /var/log/ejabberd/ejabberd.log (普通用户不可读)

问题

在消息量大/多的时候,响应会不及时甚至造成连接被重置。通过 netstat 可以观察到服务器的 Recv-Q 中有大量的数据未及时接收。prosody 没有这个问题。

参见

外部链接

参考资料