search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

1 answers
Q&A mongodb ,环境已经配置好 ,可通过在命令行直接敲 mongod 启动 却无法通过配置文件启动

0

通过命令行启动

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.小白真心求教


Your Answer
submit

1 answers
0

master/slave复制和replica set复制是两套不同的机制。前者已经不建议再继续使用。因为你这里又设置了shardsvr=true,是在一个分片集中,所以应该是使用replica set。把master=true删除试试。
另外配置了auth=true,在这种模式下集群之间的互相认证需要靠keyfile,请照文档添加或暂时禁用auth(注意如果是生产环境还是强烈建议打开auth)。

2016-11-19 16:49:40

submit

Popular tool

vc9-vc14 (32+64 bit) runtime library collection (link below)

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

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use