ejabberd

Linux下ejabberd安装配置

房东的猫 提交于 2019-12-07 20:10:42
Linux下ejabberd安装配置 1、下载Ejabberd安装包 wget http://www.process-one.net/downloads/ejabberd/2.1.13/ejabberd-2.1.13-linux-x86_64-installer.run 也可以在直接在官网上下载 ejabberd-15.11-linux-x86_64-installer.run 2、下载完成后,给安装包加权限,否则无法安装 [root@localhost xmpp]# chmod +x ejabberd-2.1.13-linux-x86_64-installer.run 3、安装Ejabberd [root@localhost xmpp]# ./ejabberd-2.1.13-linux-x86_64-installer.run Language Selection Please select the installation language [1] Dutch - Nederlands [2] English - English [3] French - Français [4] German - Deutsch [5] Russian - Русский [6] Simplified Chinese - 简体中文 [7] Spanish - Español .....

How to register user on ejabbered using php code

我只是一个虾纸丫 提交于 2019-12-07 12:44:47
问题 I found a code from stack over flow to execute the register command in ejabberd xmpp chat server using php. (Create ejabberd user from PHP) But when i execute the file i got error: "sudo: unknown user: ejabberd" "sudo: unable to initialize policy plugin" I am runing this code on my ubuntu(14.04 LTS 64-bit) machine The php code i am using as follows: <?php $username = 'tester'; $password = 'testerspassword'; $node = 'myserver.com'; exec('sudo -u ejabberd /usr/sbin/ejabberdctl register '.

Automatic Ejabberd clustering with EC2 (Amazon Web Services) [closed]

大城市里の小女人 提交于 2019-12-07 12:37:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Using Ejabberd in EC2 as an XMPP server to send real-time information to clients... How it is possible to set up clustering so that if the load on the server gets too much, Auto Scaling will create a new EC2 instance that is part of the Ejabberd cluster? The documentation I've read suggests that you must already

关于ejabberd 的垮域问题

烈酒焚心 提交于 2019-12-07 10:23:17
最近因为工作的关系开发一个基于xmpp 协议的即时通讯项目,服务器用ejabberd ,web 应用程序部署在tomcat , 两个服务器在不同的domain,碰到垮域访问的问题,需在ejabberd 配置安全策略文件。具体解决方法: 如何解决 ejabberd 的跨域问题 1, 当应用程序的部署和 ejabberd 的部署不在一个 domain 的时候,由于使用 strophe.js 的插件 flxhl.js 来与 xmpp 服务器通讯。就会出现跨域问题,解决方法就是在 ejabberd 服务器端放置 crossdomain.xml 策略文件 如: http://192.168.0.101:5280/crossdomain.xml 可以访问到策略文件就说明正确配置了,具体配置如下: A、 修改 ejabberd.cfg 文件 这样配置后就可以访问倒策略文件了,但 web-admin 管理页面登陆不进去了,再修改一下 ejabberd.cfg 的监听端口配置 ,添加一个 5281 端口来处理 web-admin 同时把原来原来的 5280 端口的 web_admin 注释掉 最后把 crossdomain.xml 文件放到 docroot 下即可, crossdomain.xml 文件内容如下: 来源: oschina 链接: https://my.oschina.net/u

Unable to login to ejabberd server using XMPP client in Android

六眼飞鱼酱① 提交于 2019-12-07 08:12:37
问题 I am trying to connect & login to ejabberd server using a XMPP client in Android. The XMPP client connects to the server but doesn't logs in. I am getting Exception message as No response from the server . I don't know where is the problem. Following is the code: XMPP Client.java package org.apache.android.xmpp; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.View; import android.widget.ArrayAdapter; import android

Members cannot get member list in a muc room

↘锁芯ラ 提交于 2019-12-07 08:00:33
I'm using IOS XMPPFramework for our chat application and I'm creating the group and adding the selected member with the below code, and receipants succesfully joins the group. And if I query the member list of that group admins succesfully retrieve the group's members but members cannot get the same list and instead they are receiving the below error: <iq xmlns="jabber:client" from="250034370263@conference.chat.meeapps.com.tr" to="16503312600@chat.meeapps.com.tr/15323458207749806891286" id="FF691FF5-D12B-4BAA-AB19-84E7A2B945D4" type="error"><query xmlns="http://jabber.org/protocol/muc#admin">

smack connect to xmpp server with previous stream id

旧街凉风 提交于 2019-12-07 06:26:01
问题 I'm building a chat application using xmpp over Ejabbered for server and smack for android client I've established connecting , login , send and receiving messages ,then I've faced a problem with user network disconnecting and reconnecting , which has been solved by Reconnecting Manger in smack and xmpp-0198, however there is a case where i need to create a new connection in smack but use the previous session (stream) to get all the messages stored in that session (they don't get stored to

ejabberd: Error running Post Install Script

↘锁芯ラ 提交于 2019-12-07 01:12:09
问题 I'm trying to install ejabberd on my pc but I keep getting this error: Error running Post Install Script The installation may not have completed correctly 回答1: ejabberd 15.07 has been released and is likely to have fix your issues with installer. You can download upgrade on ejabberd Download page. 来源: https://stackoverflow.com/questions/31269714/ejabberd-error-running-post-install-script

PHP通过xmlrpc注册ejabberd用户

旧巷老猫 提交于 2019-12-06 18:32:04
正在研发一款社交软件,架构im使用了ejabberd作为xmpp服务器,于是遇到了如何通过php注册xmpp用户的问题。 解决方法有几个: 1.用xmpphp框架发送含<body>元数据的消息到服务器要求处理,这个可参考: http://blog.csdn.net/newjueqi/article/details/7864066 2.使用php的xmpp库jaxl,其demo代码中包含一个register_user的脚本,通过shell调用: php example/register_user.php YOUR_DOMAIN 即可生成用户,缺点是性能较差且慢,不建议 3.最优方法是使用ejabberd自带的命令行工具ejabberdctl来直接生成用户。网上的回答基本是通过修改sudo用户组权限来直接在php使用exec语句来执行此命令 $username = 'tester'; $password = 'testerspassword'; $node = 'myserver.com'; exec('sudo /usr/sbin/ejabberdctl register '.$username.' '.$node.' '.$password.' 2>&1',$output,$status); if($output == 0) { // Success! } else { //

ejabberd moudle 开发

一笑奈何 提交于 2019-12-06 18:31:50
参考: http://anders.conbere.org/journal/ http://www.process-one.net/en/wiki/ejabberd_module_development/ ejabberd的内部的很多模块都是以插件的形式工作,这样我们也可以开发自己的模块融合到ejabberd中去,完成各种各样我们独特的需求。 ejabberd定义了一个gen_mod behaviour,其要求下面的callback: Erlang代码 start(Host, Opts) -> ok stop(Host) -> ok * Host = string() * Opts = [{Name, Value}] * Name = Value = string() 其中Host是运行这module的一个虚拟的主机。 Opts是在配置中指定的mod的参数(后面会讲到),可以通过gen_mod:get_module_opt/4获取(参看gen_mod.erl代码得知这些信息存储在ets中)。 我们要实现一个mod非常容易,就非常容易了: Erlang代码 -module(my_module). -author( 'your@mail.com' ). -behaviour(gen_mod). -include( 'ejabberd.hrl' ). %% gen_mod