ejabberd无状态配置 [英] ejabberd stateless configuration

查看:102
本文介绍了ejabberd无状态配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对XMPP真的很陌生,所以我决定与ejabberd一起去。首先,我尝试在ubuntu上进行配置,但接连出现错误,我只是切换到Windows。服务器正在运行。

I'm really new to XMPP and I decided to go with ejabberd. Firstly I tried to configure it on ubuntu, but I got error after error and I just switched to windows. The server is running now.

我已经安装了XAMPP,并使用strophe.js测试了连接。

I've installed XAMPP and I tested the connection with strophe.js.

我已经阅读了有关ejabberd的一些文档,并观看了教程视频,并且那个人谈论无状态配置(仅使用ejabberd来处理消息,并拥有自己的数据库,我保存邮件,用户等)。我想实现这一目标,但我真的不知道从哪里开始。我假设我必须将消息发布到我的数据库中进行存储,并发布到ejabberd进行推送。

I've read some of the documentation on ejabberd and watched the tutorial videos and that guy talks about stateless configuration( use ejabberd only of messages and have my own database in which I save messages,users etc). I want to achieve that, but I don't really know where to start. I assume that I would have to post the message to my database for storing and also to the ejabberd for pushing.

有什么想法/示例/教程吗?

Any ideas/examples/tutorials?

编辑:

2016-05-22 20:28:32.746 [error] <0.532.0>@ejabberd_sql:check_error:991 SQL query 'Q9525209' at {sql_queries,145} failed: <<"Unknown Host">>
2016-05-22 20:28:32.746 [error] <0.532.0>@ejabberd_sql:check_error:991 SQL query 'Q9525209' at {sql_queries,145} failed: <<"Unknown Host">>
2016-05-22 20:28:32.746 [error] <0.532.0>@ejabberd_auth:is_user_exists:316 The authentication module ejabberd_auth_sql returned an error
when checking user <<"admin">> in server <<"localhost">>
Error message: <<"Unknown Host">>

配置:

##
## MySQL server:
##
odbc_type: mysql
odbc_server: "127.0.0.1"
odbc_database: "ej_chatapp"
odbc_username: "root"
odbc_password: "password"
##
## If you want to specify the port:
odbc_port: 3306

auth_method: odbc


推荐答案

在我的视频中,无状态配置在ejabberd SaaS的上下文中被提及: https://ejabberd-saas.com

In my videos, Stateless configuration is mentioned in the context of ejabberd SaaS: https://ejabberd-saas.com

ejabberd SaaS提供了可用于指向您自己的后端的API。这些API在ejabberd中不可用,仅在SaaS中可用,以简化与客户后端的集成。

ejabberd SaaS provide API that can be used to point to your own backend. Those API are not available in ejabberd, only available in SaaS to ease integration with customer backends.

这篇关于ejabberd无状态配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆