【问题标题】:Centrifuge not using MongoDB?离心机不使用 MongoDB?
【发布时间】:2013-11-20 10:27:34
【问题描述】:

我刚刚安装了离心机 (https://centrifuge.readthedocs.org/en/latest/) 并创建了一个 configuration.json 文件并将其放在 /var/www/ 文件夹中。

当我尝试运行 centrifuge centrifuge config = /var/www/configuration.json 时,服务器启动。但是,当我在管理面板中转到默认路径 http://localhost:8000 时,它一直说 DataStructure used as SQLite。

这是我的 configuration.json 文件

{
    "password": "admin",
    "cookie_secret": "secret",
    "api_secret": "secret",
    "structure": {
        "storage": "centrifuge.structure.mongodb",
        "settings": {
            "host": "localhost",
            "port": 27017,
            "name": "centrifuge",
            "pool_size": 10
        }
    },
    state: null
}

我检查了一下,MongoDB 服务器正在端口 27017 上运行。

【问题讨论】:

    标签: mongodb real-time centrifuge


    【解决方案1】:

    您似乎正在使用不正确的命令行参数启动 Centrifuge。尝试复制并粘贴到您的终端:

    centrifuge --config=/var/www/configuration.json
    

    【讨论】:

      猜你喜欢
      • 2022-09-25
      • 1970-01-01
      • 2015-06-29
      • 2012-07-16
      • 2012-04-30
      • 1970-01-01
      • 2022-07-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多