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