为 couchbase 启用查询服务

Enable query service for couchbase

对于非常初学者的问题,我很抱歉,我是第一次安装 couchbase,当我想加载 "beer-sample" 以尝试 运行 一些 n1ql 脚本时,我得到以下信息:

This cluster does not contain an index or query node. Sample data will be installed without creating indexes.

当我在 couchbase 控制台中单击“查询”时:

No query nodes were found on this cluster.

如何启用这两个?

just installed couchbase for the first time

在安装过程中,它应该会提示您为集群的每个节点安装某些服务。

也许可以在集群设置之后添加服务,但由于您有一个新的集群,我建议您从头开始重新启动

相关文档:https://docs.couchbase.com/server/current/manage/manage-nodes/create-cluster.html