无法启动Mongo节点

时间:2016-03-15 13:42:18

标签: mongodb

尝试使用命令

启动mongo节点
mongos --configdb 192.168.6.3:27019 --port 27018

在输出结果中:

Tue Mar 15 16:08:21.062 [mongosMain] warning:  couldn't check dbhash on config server 192.168.6.3:27019 :: caused by :: 11002 socket exception [CONNECT_ERROR] server [192.168.6.3:27019] mongos connectionpool error: couldn't connect to server 192.168.6.3:27019
Tue Mar 15 16:08:21.064 [mongosMain] ERROR: error upgrading config database to v4 :: caused by :: could not load config version for upgrade :: caused by :: 11002 socket exception [CONNECT_ERROR] server [192.168.6.3:27019] mongos connectionpool error: couldn't connect to server 192.168.6.3:27019
Tue Mar 15 16:08:21.064 warning:  couldn't check dbhash on config server 192.168.6.3:27019 :: caused by :: 11002 socket exception [CONNECT_ERROR] server [192.168.6.3:27019] mongos connectionpool error: couldn't connect to server 192.168.6.3:27019

你能帮助我吗,我做错了什么?

1 个答案:

答案 0 :(得分:1)

我会从评论中总结解决方案以解决问题。

首先,阅读mongo服务器日志。

如果您看到与DNS相关的错误,请检查您是否使用了系统可以解析的正确DNS名称。要排除DNS错误,请尝试使用configurtaion中的直接IP地址运行服务器。

如果您仍然看到与网络相关的错误(例如无法连接到服务器),请检查:

  • 您尝试连接的服务器实例正在运行
  • 您使用正确的IP地址和端口
  • 您的网络链接已启动
  • 同行和您身边的防火墙都没有阻止连接