我刚刚安装了离心机(https://centrifuge.readthedocs.org/en/latest/)并创建了一个configuration.json文件,并将其放在/var/www/文件夹中。
当我尝试运行离心机离心机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上运行。
发布于 2013-11-25 17:27:07
您似乎正在使用错误的命令行参数启动离心机。尝试复制并粘贴到您的终端中:
centrifuge --config=/var/www/configuration.jsonhttps://stackoverflow.com/questions/20093323
复制相似问题