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管理界面:
ejabberd集羣安裝(未驗證):http://blog.chinaunix.net/uid-10525745-id-2949550.html