想要在32位系统中使用启用日记功能的数据库-MongoDB [英] Want to use journaling enabled DB in 32 bit system-MongoDB

查看:72
本文介绍了想要在32位系统中使用启用日记功能的数据库-MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行一个先前在64 bit机器上开发的现有应用程序. 它已经有一个现有的数据库 mongoDB ,并且启用了64位日记功能.

I want to run an existing application, that was developed earlier on 64 bit machine. It already has an existing database mongoDB with journaling enabled for 64 bit.

32 bit中未启用系统日记功能,因此当我尝试使用此数据库运行MongoDB服务时,它将无法正常工作

In 32 bit system journaling is not enabled, so when I try to run MongoDB service with this DB, it does not work

我如何重用该数据库并能够在我的32 bit系统中运行该应用程序?

How can i reuse this DB and able to run this application in my 32 bit system?

推荐答案

您可以通过使用命令行参数--journal启动mongod来在32位MongoDB中手动启用日记功能.

You can manually enable journaling in 32bit MongoDB by starting mongod with the command line parameter --journal.

如果仍然无法使用,则可以使用 mongodump 64位数据库上的实用程序将数据库导出到文件中.然后,您可以使用 mongorestore 将其导入到32位数据库中.

When it still doesn't work, you can use the mongodump utility on the 64bit database to export your database to a file. Then you can use mongorestore to import it into your 32bit database.

但是,请记住,MongoDB在32位模式下有严格的限制,最关键的一点是您的总数据库大小限制为大约2GB的数据,而启用日记功能时则更少(可以减少日记功能的影响)附加参数--smallfile).当数据库大于此值时,它将无法在32位系统上运行.

However, keep in mind that MongoDB has severe limitations in 32bit mode, the most critical one being that your total database size is restricted to about 2GB of data, even less when you have journaling enabled (you can reduce the impact of journaling a bit with the additional parameter --smallfile). When your database is larger than this, it will not work on a 32bit system.

这篇关于想要在32位系统中使用启用日记功能的数据库-MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆