標籤:tigase xmpp xmpp server
Win7安裝並配置Tigase伺服器
chszs,轉載需註明。部落客頁:http://blog.csdn.net/chszs
1、下載tigase-server-5.2.0-b3447.exe
2、執行可執行檔,解壓出tigase-server-5.2.0-b3447.jar,放到D盤根目錄
3、以管理員權限開啟CMD環境,並執行以下命令:
D:\>java -jar tigase-server-5.2.0-b3447.jar
彈出GUI介面,開始圖形化安裝過程。
- 接著選擇Java安裝環境,C:\jdk7
- 選擇“安裝Tigase伺服器”和“配置Tigase伺服器”
- 接著是Tigase的介紹
- 接著是同意GNU許可證
- 再接著是選擇安裝路徑,d:\Tigase
- 接著是選擇要安裝的包或模組,有:
必選的:Base、Windows Files、
可選的:Docs、Extras、Groovy scripting、Derby資料庫及驅動、MySQL資料庫驅動、PostgreSQL資料庫驅動、SQL Server資料庫驅動、OSGi依賴、HTTP API組件、源碼
我選擇了Docs、Extras、Groovy scripting、MySQL資料庫驅動、HTTP API組件、源碼
- 開始安裝
順利執行完。
- 接著建立捷徑
- 接著是現有的Tigase Server配置:
--admins = [email protected]
config-type = --gen-config-def
--virt-hosts = LQ-Desktop
--debug = server
- 基本的Tigase伺服器配置:
配置類型:預設安裝Default installation
XMPP domains:lq-test
伺服器管理員: [email protected]
管理員密碼:tigase123
選擇資料庫:MySQL
選擇進階配置選項(Advanced configuration options)
Seperate authentication database 選擇OK
選擇運行時的可選組件:全選擇OK
MUC
PubSub
STUN Component
Socks5 Component
Message Archive Component
想讓伺服器運行於叢集模式:全選擇OK
Cluster mode
Tigase Advanced Clustering Strategy (ACS) Component
PubSub ACS
MUC ACS
選擇要輸出Debug日誌的組件:全選擇OK
Base Server
Plugins debug
Database debug
Cluster debug
- 輸入自己的名字或公司的名字進行證明:lq-test
- 資料庫配置
Super user account name: root
Super user password:root123
Retype password:root123
MySQL資料庫的配置細節:
Database account:tigase
Account password:tigase456
Database name:tigasedb
Database host or IP:localhost
Additional database parameters:空
- 繼續,直到安裝配置完成。
4、運行Tigase伺服器
在Windows開始菜單中,選擇“Manually Start Tigase-5.2.0-b3447 Server”,運行Tigase伺服器。
Tigase伺服器運行正常。
5、安裝用戶端進行驗證
潘迪安Pandion是一個立即訊息用戶端工具,目前版本為2.6.106(2011年的版本)。有Windows版,下載後安裝它。
安裝完成後,執行,會彈出一個類似于飛秋的通訊工具介面。
1)選擇註冊一個新使用者
使用者名稱:test-lq01
2)輸入地址資訊
選擇“串連設定”,輸入伺服器串連設定的資訊
伺服器:localhost
連接埠:5222
安全通訊設定:(選擇預設的)使用伺服器上的TLS加密
點擊確定按鈕,填寫主UI的內容
伺服器:lq-test
使用者名稱:test-lq01
密碼:123456
確認密碼:123456
Email address:為空白