您的位置:首页 > 其它

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

2014-09-09 15:08 429 查看


原文地址:/article/5026244.html


【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管理界面:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: