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

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.ejabberd.im/

参考: https://git.process-one.net/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管理界面: 

 

转载于:https://www.cnblogs.com/dyingbleed/archive/2013/04/04/2999885.html

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值