AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1049891
Accepted
linucksrox
linucksrox
Asked: 2021-01-15 18:39:31 +0800 CST2021-01-15 18:39:31 +0800 CST 2021-01-15 18:39:31 +0800 CST

如何成功运行 ejabberdctl dump-config 或找到更新的文档?

  • 772

在 Docker 中启动 ejabberd 20.12 后,日志告诉我应该运行 ejabberdctl dump-config 以获取当前运行配置。

2021-01-15 01:32:21.039034+00:00 [warning] Listening option 'certfile' of module ejabberd_c2s is deprecated and was automatically appended to global 'certfiles' option. Please adjust your configuration file accordingly. Hint: run `ejabberdctl dump-config` command to view current configuration as it is seen by ejabberd.

当我运行它时,docker exec -it ejabberd bin/ejabberdctl dump-config它告诉我我还需要 1 个参数...

Error: the command "dump-config" requires 1 more argument.

是时候检查文档了……等一下,网上找不到任何提到 ejabberdctl dump-config 的信息。有一些关于 dump_config 的 API 信息,但我不确定它是如何转化为 CLI 的。

我试图通过指定一个输出文件来猜测额外的参数是什么,但没有写入文件。只是我还是缺少 ejabberd 文档?

ejabberd
  • 1 1 个回答
  • 305 Views

1 个回答

  • Voted
  1. Best Answer
    Badlop
    2021-01-16T08:38:19+08:002021-01-16T08:38:19+08:00

    您可以在https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#dump-config 和

    $ ejabberdctl help dump-config
    
      Command Name: dump_config
    
      Arguments: out::string
                 
      Returns: res::rescode
    
      Tags:  config
    
      Description:  Dump configuration in YAML format as seen by ejabberd
    

    因此,例如:

    $ ejabberdctl dump-config $HOME/eja.yml
    $ head $HOME/eja.yml
    hosts: 
      - "localhost"
      - "192.168.1.23"
    loglevel: info
    certfiles: 
      - "/etc/ejabberd/pem-5.pem"
    ...
    

    我试图通过指定一个输出文件来猜测额外的参数是什么,但没有写入文件。

    在 ejabberdctl 或其他 ejabberd API 命令的参数中指定路径时,请记住始终指定完整路径,例如/etc/ejabberd/something.txt.

    如果您仅指定相对路径something.txt,则它将在 ejabberd 的工作目录中生成,这可能不是您运行该 ejabberdctl 脚本的位置

    • 0

相关问题

  • xmpp 在聊天中更改状态

  • xmpp / ejabberd。向所有其他用户显示用户的存在

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve