在哪里为Windows安装添加config

在哪里为Windows安装添加config

本文介绍了Couchbase,在哪里为Windows安装添加config.json?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试根据长沙发教程链接此处

I am trying to implement Couch base in my android app following the couchbase tutorial link here

我需要添加一个config.json文件来创建自己的数据库链接,而不是使用其默认数据库"Sync_gateway".根据说明,该文件应位于数据文件夹内的bin目录中,但找不到bin目录当我从.exe文件安装了同步网关时.除了单击.exe文件外,我没有通过任何命令运行它.我想念的是什么?

I need to add a config.json file to create my own database link rather than using its default database "Sync_gateway".According to explanation it should be inside bin directory inside a data folder but I can't find a bin directory as I installed sync gatway from .exe file. I don't find run it by any command other than clicking the .exe file. What I am I missing?

推荐答案

如果在Windows中安装了sync_gateway,则打开sync_gateway.exe的文件位置,通常位于目录"C:\ Program Files(x86)"中\ Couchbase".您必须将 configure.json 放置在该目录中.现在打开Windows命令提示符,并执行' cd C:\ Program Files(x86)\ Couchbase '并运行命令' sync_gateway.exe configure". json ".确保您的configure.json文件是完美的,并且没有任何语法错误.您的同步网关现在将加载您指定的configure.json

If you have installed sync_gateway in Windows then open the file location for the sync_gateway.exe it will be usually in the directory "C:\Program Files (x86)\Couchbase" . You have to place your configure.json in that directory . Now open windows command prompt and do 'cd C:\Program Files (x86)\Couchbase' and run the command 'sync_gateway.exe configure.json' . Ensure that your configure.json file is perfect and does not have any syntax errors. your Sync gateway will now load with your specified configure.json

这篇关于Couchbase,在哪里为Windows安装添加config.json?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 22:27