一、下載Ejabberd安裝包html
wget http://www.process-one.net/downloads/ejabberd/2.1.13/ejabberd-2.1.13-linux-x86_64-installer.run
也能夠在直接在官網上下載 node
ejabberd-15.11-linux-x86_64-installer.runmysql
二、下載完成後,給安裝包加權限,不然沒法安裝linux
[root@localhost xmpp]# chmod +x ejabberd-2.1.13-linux-x86_64-installer.run
三、安裝Ejabberdsql
[root@localhost xmpp]# ./ejabberd-2.1.13-linux-x86_64-installer.run Language Selection Please select the installation language [1] Dutch - Nederlands [2] English - English [3] French - Français [4] German - Deutsch [5] Russian - Русский [6] Simplified Chinese - 簡體中文 [7] Spanish - Español .....
幾個注意的地方:a、設置域的時候輸入本機的IP地址 b、語言最好選擇英語數據庫
四、安裝完成後啓動spa
[root@localhost xmpp]# cd /opt [root@localhost opt]# cd ejabberd-2.1.13/[root@localhost ejabberd-2.1.13]# cd bin [root@localhost bin]# ./start [root@localhost bin]# ./status The node ejabberd@localhost is started with status: started ejabberd 2.1.13 is running in that node
服務已經啓動。能夠用WEB來管理。.net
WEB地址:http://ip地址:5280/admincode
五、Mysql配置htm
[root@localhost bin]# mysql -u root -p Enter password: 建立用戶和修改權限 mysql:>create database ejabberd mysql:>grant all privileges on ejabberd.* to ejabberd@’127.0.0.1′ IDENTIFIED BY ’ejabberd’; mysql:>grant all privileges on ejabberd.* to ejabberd@’localhost’ IDENTIFIED BY ’ejabberd’; 建立數據庫 mysql:>source /usr/local/ejabberd/lib/ejabberd-2.1.3/priv/odbc/mysql.sql;
六、XMPP服務配置
, , , %
七、註冊管理員用戶
./ejabberdctl register admin 192.168.200.239 123456