我有一个3节点的mongodb的cluser :在增加linux系统用户的最大openfile计数之后,我尝试了以下集群启动命令,然后重新启动linux系统,而不关闭mongodb集群。# log in each node:
1, /var/opt/mongodb-linux-x86_64-rhel62-3.4.5/bin/mongod -f /data/mongodbtest/config/mon
每次如果我的服务器错误地重启,或者我停止然后重启,我就不能连接到我的mongodb。我收到下面的错误,根据这个27017端口没有打开,但在我的安全组中,我打开了这个端口。connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketExce
我在ubuntu-16.04上使用mongodb,但mongodb给出服务器连接错误:2016-09-23T12:01:10.258+0530 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2016-09-23T12:01:10.286+0530 E QUERY [thread1] Error: couldn't connect to