通过命令行启动
mongod --port 10000 --fork --logpath /usr/local/mongodb/log/mongodb.log --logappend --dbpath =/data/db
或者配置文件启动都会报错
about to fork child process, waiting until server is ready for connections.
forked process: 1399
ERROR: child process failed, exited with error number 1
2.db 下的lock 文件也已经删除 仍然报错
3.小白真心求教
1 answers
master/slave复制和replica set复制是两套不同的机制。前者已经不建议再继续使用。因为你这里又设置了shardsvr=true,是在一个分片集中,所以应该是使用replica set。把master=true删除试试。
另外配置了auth=true,在这种模式下集群之间的互相认证需要靠keyfile,请照文档添加或暂时禁用auth(注意如果是生产环境还是强烈建议打开auth)。
Hot tools Tags
Hot Questions
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
20416
7
13576
4






