zoukankan      html  css  js  c++  java
  • mac openfire 安装 (包含bosh http nginx服务)

    java下得环境安装就是个字, f*ck. 经过几日的折腾. 终于算是略懂如何安装openfire. 

    0. 如果你已经安装过了 openfire

    # 卸载已知环境. 
    rm /Library/LaunchDaemons/org.jivesoftware.openfire.plist
    rm -r /usr/local/openfire
    rm -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. 

  • 相关阅读:
    HTML5 drag拖动事件
    echarts 实现立体柱子图
    团队管理(七)
    echarts环比图实现
    父组件调用图表组件根据按钮切换展示数据
    echarts 折柱图绘制图表标注
    团队管理(六)
    团队管理(五)
    css 绘制圆角三角形
    团队管理(四)
  • 原文地址:https://www.cnblogs.com/codesay/p/4076654.html
Copyright © 2011-2022 走看看