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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM