mongos 集群无法启动

来源:互联网 发布:经济数据库万得 编辑:程序博客网 时间:2024/05/16 10:01
  • 启动mongos
./mongos  --configdb 192.168.100.201:21000,192.168.100.202:21000,192.168.100.204:21000  --port 20000   --logpath  /data/mongodbtest/mongos/log/mongos.log --fork  about to fork child process, waiting until server is ready for connections.  forked process: 4394  ERROR: child process failed, exited with error number 1 
  • 日志文件
error upgrading config database to v6 :: caused by :: DistributedClockSkewed clock skew of the cluster 192.168.100.201:21000,192.168.100.202:21000,  192.168.100.204:21000 is too far out of bounds to allow distributed locking.  
  • 解决

– 原因:主机之间时钟有相差,约几百毫秒吧。重新同步ok。

date命令:date :查看当前时间,结果如下:Tue Mar 4 01:36:45 CST 2014date -s 09:38:40 :设置当前时间,结果如下:Tue Mar 4 09:38:40 CST 2014
1 0