install/config Azure Linux RH7.4 VM 上的 Couchbase 的问题

Issues with install/config Couchbase on Azure Linux RH7.4 VM

我在 Azure 中创建了一个 RedHat 7.4 Linux 虚拟机,以复制我们当前的 couchbase 市场服务器。由于无法通过发票付款,我们正在放弃这种做法。

我已经安装了 couchbase-server-community-4.5.0-centos7.86_64.rpm 并修改了 swappiness,禁用了 THP 并按照建议打开了端口。桶名和密码也一样

创建市场 VM 的工作人员不再受雇于此,也没有文档。

配置 couchbase 安装时,我尝试了 public IP 和 DNS 名称,但收到 listen EADDRNOTAVAIL。我还在配置期间提供了 VM 的私有 IP 和 127.0.0.1 本地主机地址,这两者都允许我继续。但是,我们无法将数据插入到创建的存储桶中,并且在尝试通过简单的控制台应用程序时收到超时错误。

InnerException {"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"} System.Exception {System.Net.Sockets.SocketException}

我对 Linux 不是很熟悉,所以非常欢迎任何想法或建议。是否有我需要编辑的系统文件?我需要编辑主机文件吗?

我从 https://packages.couchbase.com/releases/4.5.1/couchbase-server-community-4.5.1-centos7.x86_64.rpm 下载 couchbase-server-community-4.5.1-centos7.x86_64.rpm

安装 rpm 时,您将收到以下消息。

You have successfully installed Couchbase Server. Please browse to http://shui:8091/ to configure your server. Please refer to http://couchbase.com for additional resources.

Please note that you have to update your firewall configuration to allow connections to the following ports: 4369, 8091 to 8094, 9100 to 9105, 9998, 9999, 11209 to 11211, 11214, 11215, 18091 to 18093, and from 21100 to 21299.

您需要在 Azure NSG 和防火墙上打开这些端口。

对于 NSG,您需要创建如下规则:

对于防火墙,添加如下规则:

sudo firewall-cmd --zone=public --add-port=8091/tcp --permanent

为了测试,您可以禁用防火墙,使用 systemctl stop firewalld.service

然后你可以打开浏览器,输入http://<public IP>:8091。在我的示例中,它是 http://52.224.178.211:8091.


另外,你可以在Azure上使用PaaS服务Couchbase Enterprise,请参考这个link