引擎:/etc/mongod.conf中的wiredTiger无法在Centos 7.4上启动Mongo DB 3.2

时间:2017-09-24 15:39:19

标签: mongodb centos7 wiredtiger

我刚刚在Centos 7.4上安装了Mongo DB 3.2,配置

# mongod.conf

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# where to write logging data.
systemLog:
  destination: file
  logAppend: true
  path: /var/log/mongodb/mongod.log

# Where and how to store data.
storage:
  dbPath: /var/lib/mongo
  journal:
    enabled: true
#  engine:

我取消注释上面的最后一行为engine: wiredTiger并使用命令service mongodb restart重新启动mongodb,但服务器无法启动并提供以下错误

[root@server ~]# service mongod stop
Stopping mongod (via systemctl):        [  OK  ]
[root@server ~]# service mongod start
Starting mongod (via systemctl):  Job for mongod.service failed because the 
control process exited with error code. See "systemctl status mongod.service" 
and "journalctl -xe" for details.
                                        [FAILED]

当我将更改恢复为原始配置时,服务器会重新启动。有关如何将wiredTiger添加到配置中的任何帮助吗?

  

相同的程序适用于其他服务器,但不适用于此服务器

0 个答案:

没有答案