【ejabberd】安裝XMPP伺服器ejabberd(Ubuntu 12.10)
阿新 • • 發佈:2019-01-30
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.
安裝
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
Username: [email protected]
Password: 1234567
登入成功,顯示ejabberd管理介面: