openfire

Openfire+CentOS+MySQL那些事

流过昼夜 提交于 2019-12-03 15:36:23
Openfire+CentOS+MySQL 和上篇类似,这篇主要说说CentOS 安装第一步,官网下载Openfire安装包 http://www.igniterealtime.org/downloads/index.jsp 。Windows下openfire_4_0_4.exe的,Linux下openfire_4_0_4.tar.gz的,Mac就不说了,就那一个。 0、在CentOS上安装Openfire、MySQL、JDK 【0-1】、在Windows上下载好CentOS的Openfire安装包,上传到服务器的opt目录下; 【0-2】、在opt目录下执行解压命令:tar -xzvf openfire_4_0_4.tar.gz 【0-3】、 安装MySQL数据库 0-3-1、由于有些Linux服务器上自带MySQL数据库,我们将它卸载掉,重新安装。 判断是否已默认安装:rpm -qa | grep mysql 如果已安装:普通删除:rpm -e mysql 强力删除:rpm -e --nodeps mysql 删除完以后我们可以通过 rpm -qa | grep mysql 命令来查看mysql是否已经卸载成功! 0-3-2、通过yum安装MySQL数据库:yum list | grep mysql 0-3-3、通过输入:yum install -y mysql-server

Openfire+Windows+MySQL那些事

你说的曾经没有我的故事 提交于 2019-12-03 15:36:14
近来需要做个即时通讯的APP,本想使用第三方的资源,例如融云、环信等等,自己电脑装Android Studio有点卡,将SDK放Eclipse上总报各种错误,无果。愤慨,自己写个。晚上十点多回到宿舍,百度,无意间,发现个好玩意:XMPP,是个协议,现在回头看看还是个协议,哈哈。知道了XMPP,强大的百度就出来了Openfire的一条龙服务,这个相当强大,贫生就爱摆置。 第一步,不解释,官网下载Openfire安装包 http://www.igniterealtime.org/downloads/index.jsp 。Windows下openfire_4_0_4.exe的,Linux下openfire_4_0_4.tar.gz的,Mac就不说了,就那一个。 Openfire+Windows+MySQL 下载好Windows的Openfire安装包,安装到自己电脑上,基本都是下一步。安装完会有个电灯泡的快捷方式Openfire,打开后页面如下图所示。点击按钮Launch Admin,浏览器会打开个表单网页,填之。 一、表单网址大概就是: http://127.0.0.1:9090/setup/index.jsp 二、选择语言后继续,在域后边填上 127.0.0.1,都说填其他的会报错,就不测试了,然后继续 三、默认标准数据库连接,继续 四、这步不解释,最重要的。 昨晚这步在

How to use smack with Openfire

此生再无相见时 提交于 2019-12-03 14:49:00
Hi I am planning to develop a chat client which can connect to gtalk facebook etc...I have decided to use the smack API along with openfire.. But I need little guidance as to how to use it with openfire server.. And does the openfire provide a basic UI like log in box chat window etc... I need to know how to plug or use smack with openfire Thanks:) Tim Büthe I have decided to use the smack API along with openfire.. But I need little guidance as to how to use it with openfire server.. What about Smack API Getting Started ? And does the openfire provide a basic UI like log in box chat window etc

Android asmack Chat client for XMPP server

左心房为你撑大大i 提交于 2019-12-03 14:15:25
问题 I am trying to build an Android chat client using asmack library, and an XMPP server like openfire. So can anybody provide me with some links to tutorials or code snippets for my client programm. 回答1: Read their own documentation: SMACK DOCS 回答2: you can start with Xabber android client. 来源: https://stackoverflow.com/questions/10975001/android-asmack-chat-client-for-xmpp-server

Android File Transfer not working via XMPP and OpenFire

纵然是瞬间 提交于 2019-12-03 12:57:53
问题 Problem : Can't receive a file sent to my android app via XMPP and OpenFire Server. I can successfully send a file though. The asmack jar I am using is asmack-jse-buddycloud-2010.12.11.jar Code : connConfig = new ConnectionConfiguration("beta.myCompany.co.uk", 5222); connConfig.setSASLAuthenticationEnabled(true); try { connect("username", "password"); } catch (Exception e) { e.printStackTrace(); } ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(connection); if(sdm == null

difference between XMPP servername and XMPP servicename?

故事扮演 提交于 2019-12-03 12:56:16
In Smack API, there is a configuration class for connection, described at this page ConnectionConfiguration I am confused about the distinction between service name and server name. Suppose I have a computer named "mybox.mydomain.com", and I have ejabberd on it with a configured host called "myhost" (using the line {hosts, ["myhost"]}. in ejabbed.cfg), what is the host name, server name and service name in this case? myhost: service name (or XMPP domain) mybox.mydomain.com: hostname and servername. You can host an XMPP domain over any host, provided that you set the SRV records right in the

How to keep the groupchat room (MUC) existing all the time even if disconnected from the XMPP server?

隐身守侯 提交于 2019-12-03 12:30:34
问题 I am developing a instant message module (part of J2EE web app) using openfire/jsjac within the protocol of XMPP (Jabber). The openfire users/groups management/tables has been redirected to our business database tables,which means I do not need to maintain users/groups in openfire any more. all the users/group relationship has been set in business database. Below is the Image i draw about the main pane according to requirement. because of my low reputaion i can not post an image, So i post a

smack 4.1 Openfire Sample example

谁说胖子不能爱 提交于 2019-12-03 10:14:36
问题 I have been using smack 3.4 for my web portal. Also used asmack 3.4 for my android app (aSmack development stopped some years back but there where some unofficial jars that i used. Faced issues with file upload and group chat with this it so want to upgrade to official smack as it has andoid native support now). But now there is a update on smack they have moved to 4.1(android native integrated): https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-Upgrade-Guide. So i am looking

Retrieve history chat Openfire XMPP framework

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've developed a chat app using XMPPframwork of Robbie Hanson and Openfire server. I can chat one to one and chat group successfully. But when I get history of chat, I can't get whole history. I use XEP-0136 to archieve history: Send IQ: 100 Receive: asdf aafs sax 0 2 3 But when I open the database, ofMessageArchive table, I can see much more messages with group12 (~20 messages) while in the result, I only got 3. May I miss something? 回答1: Follow this format, it works for me perfectly, urn : xmpp : mam : 0 id@domain message_count *

CentOS 6部署Openfire 扩展平台聊天功能。

被刻印的时光 ゝ 提交于 2019-12-03 07:40:01
openfire 是个好东西。在团队规模有限的情况下用这个是非常的的。当然也可以用node.js 开发聊天。 linux 下面有几个要注意的地方。 因为我选择的CentOS 6是64位的了,然而Openfire却是32位的,因此必须要安装32位的C++运行时。如果服务器能够访问外网,那么执行 openfire 是java 开发的所以需要安装java 注意你的版本。 接下来按照顺序安装 http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/index.html 这个是原版地址 Openfire 版本兼容 # yum install libstdc++.i686 java 安装 安装好的CentOS会自带OpenJdk,用命令 java -version ,会有下面的信息: java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode) 最好还是先卸载掉openjdk,在安装sun公司的jdk. 先查看 rpm -qa | grep java http://jingyan.baidu.com/article