离心机不使用MongoDB?
我刚刚安装了离心机()并创建了一个configuration.json文件,并将其放在/var/www/folder中 当我尝试运行离心机不使用MongoDB?,mongodb,real-time,centrifuge,Mongodb,Real Time,Centrifuge,我刚刚安装了离心机()并创建了一个configuration.json文件,并将其放在/var/www/folder中 当我尝试运行config=/var/www/configuration.json时,服务器启动。但是,当我转到默认路径http://localhost:8000在管理面板中,它不断地说数据结构用作SQLite 这是我的configuration.json文件 { "password": "admin", "cookie_secret": "secret",
config=/var/www/configuration.json
时,服务器启动。但是,当我转到默认路径http://localhost:8000
在管理面板中,它不断地说数据结构用作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
上运行,似乎您正在使用错误的命令行参数启动离心机。尝试复制并粘贴到终端:
centrifuge --config=/var/www/configuration.json