学习MongoDB(Troubleshoot Replica Sets) 集群排除故障

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了学习MongoDB(Troubleshoot Replica Sets) 集群排除故障相关的知识,希望对你有一定的参考价值。

Test Connections Between all Members(集群中节点网络测试)

在进行Mongodb集群时,每个节点的网络都需要互动,假设有3个服务器节点。

  m1.example.net

  m2.example.net

  m3.example.net

从m1.example.net连接2和3:

mongo --host m2.example.net --port 27017
mongo --host m3.example.net --port 27017

从m2.example.net连接1和3:

mongo --host m1.example.net --port 27017
mongo --host m3.example.net --port 27017

从m3.example.net连接1和2:

mongo --host m1.example.net --port 27017
mongo --host m2.example.net --port 27017

如果任何一个环节出现错误,检查网络配置和防火墙,确保所有节点之间互动。

 

以上是关于学习MongoDB(Troubleshoot Replica Sets) 集群排除故障的主要内容,如果未能解决你的问题,请参考以下文章

IGNITE TROUBLESHOOT

如何troubleshoot SharePoint Online map network drive失败?

Connect SQL Server from Linux Client using Windows Authentication and troubleshoot steps

Doctrine2.2 (sqlite using memory) 使用 OrmTestCase 和 phpUnit TroubleShoot

nodejs+express+MongoDB实现todolist

这个问题是最近才发生的还是安装完VS 2019之后经常这样呢? 我们可以尝试以下的方法来troubleshoot下: 删除文件夹%LocalAppData%MicrosoftVisualStu