瀏覽分類:

OpenFire

[OpenFire] CentOS 上的安裝流程

在 CentOS 上安裝 OpenFire Server 流程

1.安裝 OpenFire Server 版程式

進入Openfire官網,下載最新版本的OpenFire,目前最新版本為4.2.3-1

官方下載:openfire-4.2.3-1.x86_64.rpm
本地下載:openfire-4.2.3-1.x86_64.rpm

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[root@ip-192-168-0-11 tmp]# wget https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.2.3-1.x86_64.rpm
--2018-10-04 01:49:35-- https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.2.3-1.x86_64.rpm
Resolving www.igniterealtime.org... 52.58.216.59
Connecting to www.igniterealtime.org|52.58.216.59|:443... connected.
HTTP request sent, awaiting response... 302
Location: http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm [following]
--2018-10-04 01:49:36-- http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm
Resolving download.igniterealtime.org... 52.58.216.59
Connecting to download.igniterealtime.org|52.58.216.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/igniterealtime/Openfire/releases/download/v4.2.3/openfire-4.2.3-1.x86_64.rpm [following]
--2018-10-04 01:49:37-- https://github.com/igniterealtime/Openfire/releases/download/v4.2.3/openfire-4.2.3-1.x86_64.rpm
Resolving github.com... 192.30.255.113, 192.30.255.112
Connecting to github.com|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/18511687/1bd89d1a-2e8c-11e8-8519-efffef7273cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181004%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181004T014937Z&X-Amz-Expires=300&X-Amz-Signature=e571f68b7e78991c49d9b04dec816923c201ba2116e9656c96ce055edf8b8b73&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenfire-4.2.3-1.x86_64.rpm&response-content-type=application%2Foctet-stream [following]
--2018-10-04 01:49:37-- https://github-production-release-asset-2e65be.s3.amazonaws.com/18511687/1bd89d1a-2e8c-11e8-8519-efffef7273cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181004%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181004T014937Z&X-Amz-Expires=300&X-Amz-Signature=e571f68b7e78991c49d9b04dec816923c201ba2116e9656c96ce055edf8b8b73&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenfire-4.2.3-1.x86_64.rpm&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.101.147
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.101.147|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105731242 (101M) [application/octet-stream]
Saving to: âdownloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpmâ
100%[=================================================>] 105,731,242 11.0M/s in 2m 21s
2018-10-04 01:51:59 (735 KB/s) - âdownloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpmâ
[root@ip-192-168-0-11 tmp]# yum install downloadServlet\?filename\=openfire%2Fopenfire-4.2.3-1.x86_64.rpm
Loaded plugins: presto, security
Setting up Install Process
Examining downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpm: openfire-4.2.3-1.x86_64
Marking downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package openfire.x86_64 0:4.2.3-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================
Package Arch Version Repository Size
===========================================================================================
Installing:
openfire
x86_64 4.2.3-1 /downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64 256 M
Transaction Summary
===========================================================================================
Install 1 Package(s)
Total size: 256 M
Installed size: 256 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : openfire-4.2.3-1.x86_64 1/1
Verifying : openfire-4.2.3-1.x86_64 1/1
Installed:
openfire.x86_64 0:4.2.3-1
Complete!
[root@ip-192-168-0-11 tmp]# wget https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.2.3-1.x86_64.rpm --2018-10-04 01:49:35-- https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.2.3-1.x86_64.rpm Resolving www.igniterealtime.org... 52.58.216.59 Connecting to www.igniterealtime.org|52.58.216.59|:443... connected. HTTP request sent, awaiting response... 302 Location: http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm [following] --2018-10-04 01:49:36-- http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm Resolving download.igniterealtime.org... 52.58.216.59 Connecting to download.igniterealtime.org|52.58.216.59|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://github.com/igniterealtime/Openfire/releases/download/v4.2.3/openfire-4.2.3-1.x86_64.rpm [following] --2018-10-04 01:49:37-- https://github.com/igniterealtime/Openfire/releases/download/v4.2.3/openfire-4.2.3-1.x86_64.rpm Resolving github.com... 192.30.255.113, 192.30.255.112 Connecting to github.com|192.30.255.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/18511687/1bd89d1a-2e8c-11e8-8519-efffef7273cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181004%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181004T014937Z&X-Amz-Expires=300&X-Amz-Signature=e571f68b7e78991c49d9b04dec816923c201ba2116e9656c96ce055edf8b8b73&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenfire-4.2.3-1.x86_64.rpm&response-content-type=application%2Foctet-stream [following] --2018-10-04 01:49:37-- https://github-production-release-asset-2e65be.s3.amazonaws.com/18511687/1bd89d1a-2e8c-11e8-8519-efffef7273cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181004%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181004T014937Z&X-Amz-Expires=300&X-Amz-Signature=e571f68b7e78991c49d9b04dec816923c201ba2116e9656c96ce055edf8b8b73&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenfire-4.2.3-1.x86_64.rpm&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.101.147 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.101.147|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 105731242 (101M) [application/octet-stream] Saving to: âdownloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpmâ 100%[=================================================>] 105,731,242 11.0M/s in 2m 21s 2018-10-04 01:51:59 (735 KB/s) - âdownloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpmâ [root@ip-192-168-0-11 tmp]# yum install downloadServlet\?filename\=openfire%2Fopenfire-4.2.3-1.x86_64.rpm Loaded plugins: presto, security Setting up Install Process Examining downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpm: openfire-4.2.3-1.x86_64 Marking downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package openfire.x86_64 0:4.2.3-1 will be installed --> Finished Dependency Resolution Dependencies Resolved =========================================================================================== Package Arch Version Repository Size =========================================================================================== Installing: openfire x86_64 4.2.3-1 /downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64 256 M Transaction Summary =========================================================================================== Install 1 Package(s) Total size: 256 M Installed size: 256 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : openfire-4.2.3-1.x86_64 1/1 Verifying : openfire-4.2.3-1.x86_64 1/1 Installed: openfire.x86_64 0:4.2.3-1 Complete!
[root@ip-192-168-0-11 tmp]# wget https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.2.3-1.x86_64.rpm
--2018-10-04 01:49:35--  https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.2.3-1.x86_64.rpm
Resolving www.igniterealtime.org... 52.58.216.59
Connecting to www.igniterealtime.org|52.58.216.59|:443... connected.
HTTP request sent, awaiting response... 302
Location: http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm [following]
--2018-10-04 01:49:36--  http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm
Resolving download.igniterealtime.org... 52.58.216.59
Connecting to download.igniterealtime.org|52.58.216.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/igniterealtime/Openfire/releases/download/v4.2.3/openfire-4.2.3-1.x86_64.rpm [following]
--2018-10-04 01:49:37--  https://github.com/igniterealtime/Openfire/releases/download/v4.2.3/openfire-4.2.3-1.x86_64.rpm
Resolving github.com... 192.30.255.113, 192.30.255.112
Connecting to github.com|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/18511687/1bd89d1a-2e8c-11e8-8519-efffef7273cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181004%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181004T014937Z&X-Amz-Expires=300&X-Amz-Signature=e571f68b7e78991c49d9b04dec816923c201ba2116e9656c96ce055edf8b8b73&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenfire-4.2.3-1.x86_64.rpm&response-content-type=application%2Foctet-stream [following]
--2018-10-04 01:49:37--  https://github-production-release-asset-2e65be.s3.amazonaws.com/18511687/1bd89d1a-2e8c-11e8-8519-efffef7273cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181004%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181004T014937Z&X-Amz-Expires=300&X-Amz-Signature=e571f68b7e78991c49d9b04dec816923c201ba2116e9656c96ce055edf8b8b73&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenfire-4.2.3-1.x86_64.rpm&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.101.147
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.101.147|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105731242 (101M) [application/octet-stream]
Saving to: âdownloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpmâ
100%[=================================================>] 105,731,242 11.0M/s   in 2m 21s

2018-10-04 01:51:59 (735 KB/s) - âdownloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpmâ

[root@ip-192-168-0-11 tmp]# yum install downloadServlet\?filename\=openfire%2Fopenfire-4.2.3-1.x86_64.rpm
Loaded plugins: presto, security
Setting up Install Process
Examining downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpm: openfire-4.2.3-1.x86_64
Marking downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package openfire.x86_64 0:4.2.3-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
 Package Arch   Version Repository                                                    Size
===========================================================================================
Installing:
 openfire
         x86_64 4.2.3-1 /downloadServlet?filename=openfire%2Fopenfire-4.2.3-1.x86_64 256 M

Transaction Summary
===========================================================================================
Install       1 Package(s)

Total size: 256 M
Installed size: 256 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : openfire-4.2.3-1.x86_64                                                 1/1
  Verifying  : openfire-4.2.3-1.x86_64                                                 1/1

Installed:
  openfire.x86_64 0:4.2.3-1

Complete!

閱讀更多

XMPP協議相關基礎概念

1. XMPP
eXtensible Messaging and Presence Protocol可擴展消息處理和現場協議,用於在2個地點之間傳遞小型的結構化數據段的協議。定義了在兩個或更多痛心屍體之間傳遞數據所採用的格式。
2. XMPP服務器
為XMPP節提供路由。
3.應用
在XMPP內部,可以找到由聯繫人組成的花名冊,可以用它們來創建定向或無向社交圖。
當聯繫人上下線時自動發送出席通知,而個人消息和公共消息時XMLPP系統的基礎應用。
有時候開發人選選擇XMPP作為底層技術。
4. XMPP內部功能塊
構建發布-訂閱服務、多人聊天、表單檢索和處理、實時數據傳輸、隱私控制、遠程過程調用。
5. XMPP節
XMPP通信的端點以節為單位來處理輸入和產生輸出。
首先有個XMPP流,然後所有工作都是在這個流上發送和接收XMPP節實現的。
XMPP流有2份XML文檔組成,通信的每個方向均有1份。這些文檔的根節點是<stream:stream>。這個stream節點的子節點由“可陸游的節以及流相關的頂級節點”構成。每個節都是一個XML元素(包括它的子節點)。
XMPP節有3種:<presence>、<message>、<iq>。

閱讀更多

Strophe JS 說明

    • Strophe對像中
      • 命名空間
      • 連接狀態
      • 日誌
      • addConnectionPlugin 添加插件
      • forEachChild
        • 示例,解析Vcard節
      • isTagEqual
      • xmlescape,xmlunescape,serialize
      • escapeNode,unescapeNode
      • 與JID相關的幾個方法getNodeFromJid,getDomainFromJid,getResourceFromJid,getBareJidFromJid
    • Strophe.Builder
      • 示例
    • Strophe.Handler和trophe.TimeHandler
    • SASL
      • Strophe.SASLMechanism 驗證機制
    • Strophe.Connection
      • connect, disconnect斷開連接。
      • send(elem) 發送節, sendIQ(elem, callback, errback, ti​​meout) 發送IQ節
      • addHandler,deleteHandler,addTimedHandler,deleteTimedHandler
      • xmlInput,xmlOutput,rawInput,rawOutput
    • Strohpe.Websocket,Strophe.Bosh 和Strophe.Request

閱讀更多