我刚刚在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
添加到配置中的任何帮助吗?
相同的程序适用于其他服务器,但不适用于此服务器