分享

【ejabberd】安装XMPP服务器ejabberd(Ubuntu 12.04)

 TIDEDOC 2013-08-21

ejabberd

  • ejabberd is a free and open source instant messaging server written in Erlang/OTP.
  • ejabberd is cross-platform, distributed, fault-tolerant, and based on open standards to achieve real-time communication.
  • ejabberd is designed to be a rock-solid and feature rich XMPP server.
  • ejabberd is suitable for small deployments, whether they need to be scalable or not, as well as extremely big deployments.

官方网站: http://www./

参考: https://git./ejabberd/mainline/blobs/raw/v2.1.11/doc/guide.html

 

安装

Ubuntu系统,可以使用apt-get安装ejabberd

终端执行

sudo apt-get install ejabberd

安装成功后,ejabberd就运行了

 

工具

ejabberdctl是管理ejabberd服务的终端命令工具

重启:

sudo ejabberdctl restart

状态:

sudo ejabberdctl status

 

创建管理员

1、 注册用户

下面,以在本地(localhost)注册用户名“anthony”密码“1234567”为例:

终端执行:

sudo ejabberdctl register anthony localhost 1234567

2、 修改配置文件

终端,切换目录至“/etc/ejabberd”

编辑ejabberd.cfg文件,在

%% Admin user
{acl, admin, {user, "", "localhost"}}.

后添加
{acl, admin, {user, "anthony", "localhost"}}.
{access, configure, [{allow, admin}]}.

3、 重启

4、 访问ejabberd Web Admin

浏览器访问地址: http://localhost:5280/admin

Username: anthony@localhost

Password: 1234567

登录成功,显示ejabberd管理界面: 

 

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多