English 中文(简体)
如何停止使用厕所
原标题:How to stop ejabberd from using mnesia [closed]
Closed. This question is off-topic. It is not currently accepting answers.

Closed 10 years ago.

我试图建立一个程序,将我的数据库从坠毁的服务器恢复至新的服务器。 我的服务器正在运行Ejabberd,作为XMPP服务器,我配置了该服务器,以使用邮政舱而不是nes子,或者我这样认为。

我的程序包括“假设原非行的内容,管理新的服务器,用纸浆恢复各行的内容,然后管理该系统”。 然而,当我试图再次驾车时,我坠毁:

=CRASH REPORT==== 3-Dec-2010::22:05:00 ===
  crasher:
    pid: <0.36.0>
    registered_name: []
    exception exit: {bad_return,{{ejabberd_app,start,[normal,[]]},
                                 { EXIT ,"Error reading Mnesia database"}}}
      in function  application_master:init/4

我在这里想到,我的系统在邮政总局运作,而我似乎仍在使用Mnesia。 我有几个问题:

  1. How can I make sure mnesia is not being used?
  2. How can I divert all the ejabberd activities to PGSQL?

这是我ejabberd.cfg档案中的单元:

{modules,
 [
  {mod_adhoc,    []},
  {mod_announce, [{access, announce}]}, % requires mod_adhoc
  {mod_caps,     []},
  {mod_configure,[]}, % requires mod_adhoc
  {mod_ctlextra, []},
  {mod_disco,    []},
  {mod_irc,      []},
  {mod_last_odbc,     []},
  {mod_muc,      [
      {access, muc},
      {access_create, muc},
      {access_persistent, muc},
      {access_admin, muc_admin},
      {max_users, 500}
     ]},
  {mod_offline_odbc,  []},
  {mod_privacy_odbc,  []},
  {mod_private_odbc,  []},
  {mod_pubsub,   [ % requires mod_caps
      {access_createnode, pubsub_createnode},
      {plugins, ["default", "pep"]}
     ]},
  {mod_register, [
      {welcome_message, none},
      {access, register}
     ]},
  {mod_roster_odbc,   []},
  {mod_stats,    []},
  {mod_time,     []},
  {mod_vcard_odbc,    []},
  {mod_version,  []}
 ]}.

我失踪了什么?

我假设坠毁是因为Ejabberd正在使用 m子行,而且由于它脱离了普惠制银行的辛迪加,它无法正确运作——但也许我会完全绕过这里的轨道,并且会爱某种方向。

www.un.org/Depts/DGACM/index_spanish.htm 一个问题已经解决。 自2006年以来 我用一枚马逊云,需要硬化ERLANG_。 于是,新民阵由东道名称(改换boot)来界定。 这听了我的耳目,但我仍然希望停止使用 m子,我想知道艾哈伯德的哪一部分仍在使用,以及我是如何发现的。

问题回答

我在上周亲上学到一些人。

如果你经营除nes以外的任何非行,那么你操作的所有单元实际上不会与它联系。

For instance, mod_admin_extra will continue to work with the mnesia db, even after you have configured the server to work with postgress. So if you re doing alot of your adding/removing roster/users via the extra commands that mod_admin_extra provide (and other modules), then you re going to have to find some other way to do it.

基本上,根本不可能停止使用nes,它总是用于某种处理。





相关问题
ejabberd supervisor module

I need to keep a gen_mod process running as it loops every minute and does some cleanup. However once every few days it will crash and I ll have to manually start it back up again. I could use a ...

Mnesia asynchronous transaction

I would like to have a master-slave setup of Erlang nodes, where read and write operations happen on the master node only. Slave nodes are only kept as hot-standbys. As I understand the default ...

Ejabberd Memory Consumption (or Leak?)

I m using ejabberd + mochiweb on our server. The longer I keep ejabberd and mochiweb running, the more memory is consumed (last night it was consuming 35% of memory. right now it s a bit above 50%). ...

Erlang: specifying a working directory for mnesia?

How do I specify a working directory for mnesia without resorting to passing the "dir" parameter on the command-line? In other words, can I specify a "working directory" for mnesia just before ...

Erlang : Mnesia : Updating a single field value in a row

I have an mnesia table with three fields, i, a and b, created using the record -record(rec, {i, a,b}). Now I insert a row into the table as: mnesia:transaction( fun() -> mnesia:write("T", #rec{i=...

Erlang Ets tables between Nodes

I ve got an ejabberd server with a good amount of custom modules running. I have several mnesia tables and I know these can be easily copied between nodes without any change to the code at all. I ...

热门标签