无法在Windows上部署MongoDB副本集?
发布时间:2020-12-14 04:38:28 所属栏目:Windows 来源:网络整理
导读:我想从配置文件部署一个 mongodb副本集,其中包含1个主副本和2个副主,如下所示: 主节点的第一个配置文件 #primary node#===============dbpath = C:datars01directoryperdb = truebind_ip = 192.168.2.104port = 27017logpath = C:mongodb2.5.3logspri
我想从配置文件部署一个
mongodb副本集,其中包含1个主副本和2个副主,如下所示:
主节点的第一个配置文件 #primary node #=============== dbpath = C:datars01 directoryperdb = true bind_ip = 192.168.2.104 port = 27017 logpath = C:mongodb2.5.3logsprimary.log logappend = true noauth = true replSet = rs0 rest = true 辅助节点的第二个配置文件 #secondary node #=============== dbpath = C:datars02 directoryperdb = true bind_ip = 192.168.2.104 port = 27018 logpath = C:mongodb2.5.3logssecondary1.log logappend = true noauth = true replSet = rs0 rest = true 以及辅助节点的第三个配置文件 #secondary node #=============== dbpath = C:datars03 directoryperdb = true bind_ip = 192.168.2.104 port = 27019 logpath = C:mongodb2.5.3logssecondary2.log logappend = true noauth = true replSet = rs0 rest = true 但我得到了这个错误 .... 2013-11-28T16:26:59.734+0700 [initandlisten] options: { bind_ip: "192.168.2.104",config: "configmongorep.conf",dbpath: "C:datars01",directoryperdb: true,logappend: true,logpath: "C:mongodb2.5.3logsprimary.log",noauth: true,port: 27017,replSet: "rs0",rest: true } 2013-11-28T16:26:59.742+0700 [FileAllocator] allocating new datafile C:datars01locallocal.ns,filling with zeroes... 2013-11-28T16:26:59.742+0700 [FileAllocator] creating directory C:datars01local_tmp 2013-11-28T16:26:59.835+0700 [FileAllocator] done allocating datafile C:datars01locallocal.ns,size: 16MB,took 0.092 secs 2013-11-28T16:26:59.836+0700 [FileAllocator] allocating new datafile C:datars01locallocal.0,filling with zeroes... 2013-11-28T16:27:00.101+0700 [FileAllocator] done allocating datafile C:datars01locallocal.0,size: 64MB,took 0.265 secs 2013-11-28T16:27:00.102+0700 [initandlisten] command local.$cmd command: { create: "startup_log",size: 10485760,capped: true } ntoreturn:1 keyUpdates:0 reslen:37 360ms 2013-11-28T16:27:00.102+0700 [initandlisten] waiting for connections on port 27017 2013-11-28T16:27:00.103+0700 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG) 2013-11-28T16:27:00.103+0700 [rsStart] replSet info you may need to run replSetInitiate -- rs.initiate() in the shell -- if that is not already done 2013-11-28T16:27:00.104+0700 [websvr] admin web console waiting for connections on port 28017 2013-11-28T16:27:01.103+0700 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG) 2013-11-28T16:27:02.103+0700 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG) 2013-11-28T16:27:03.103+0700 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG) 2013-11-28T16:27:04.103+0700 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG) 2013-11-28T16:27:05.103+0700 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG) 而当我完成相同的指南时 我也得到了同样的错误 replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG) 我不知道我需要做什么esle配置来解决这个问题,请帮助我,非常感谢. 解决方法
在配置文件中添加/更改replSet的值后,在mongo控制台中运行rs.initiate().
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 调试 – 为什么gflags无法启动,当我启动时它会立即飞溅并立
- Windows平台下面Oracle11.2.0.1 升级Oracle11.2.0.4 的简单
- windows-7 – 将漫游配置文件移动到DFS
- Windows TensorFlow
- 【逆向】QQkey盗号木马原理分析
- windows – 如何从批处理文件中启动进程的PID?
- Windows – 网络应用程序的带宽和流量模拟器?
- windows – 在我的网络上找到未使用的IP地址的任何方法?
- windows-phone-7 – 将WP7应用程序从免费更改为付费
- windows-server-2012-r2 – 无法激活Windows Server 2012 r
推荐文章
站长推荐
- 如何评估Windows环境变量?
- 将新修改键添加到Windows需要什么?
- windows-server-2008-r2 – 服务器突然无法建立新
- 在Windows上使用git时出现警告和致命错误?
- 如何在远程Powershell会话中保留凭据?
- Window丢失api-ms-win-crt-runtime-l1-1-0.dll
- wix – 安装MSI时可能导致错误2902的原因是什么?
- 配备Hyper-V的智能UPS 2200和Windows 2008 R2
- windows server 2003&nbs
- windows-server-2008 – Perfmon – 无法启动数据
热点阅读