mac openfire 安裝 (包含bosh http nginx服務)

來源:互聯網
上載者:User

標籤:style   blog   http   color   ar   os   使用   java   sp   

java下得環境安裝就是個字, f*ck. 經過幾日的折騰. 終於算是略懂如何安裝openfire. 

0. 如果你已經安裝過了 openfire

# 卸載已知環境. rm /Library/LaunchDaemons/org.jivesoftware.openfire.plistrm -r /usr/local/openfirerm -r /Library/PreferencePanes/Openfire.prefpane# WARNING: 如果基於資料庫. 非常非常重要.  drop database your_im_db;

0. 坑

# 基於http的xmpp服務, 必須網域名稱一致. # 如果想跨域, 請自行尋找配置方案. 本文, 基於相同網域名稱. 

1. 安裝jre環境.

2. 安裝 openfire 服務. 

3. 配置openfire服務. 

goto http://localhost:9090 進行配置.!!!!!server name使用http聊天介面網域名稱. !!!!!db確保是空db.一路next後, 登陸伺服器.伺服器設定->http綁定: 選中 Enabled - Allows BOSH Clients With Limited Access to Connect to the Server.伺服器設定->伺服器憑證: 重啟http服務. 

4. 如何測試openfire基礎服務(5222).

安裝spark.伺服器填寫, 配置時的server name. 註冊, 登陸成功. 則表明基礎服務正常. 

5. 如何測試openfire的http服務(7070).

curl "http://server_name:7070/http-bind/?%3Cbody%20rid=%221%22/%3E"

6. 

 

mac openfire 安裝 (包含bosh http nginx服務)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.