如何在beaglebone黑色上安装mongodb [英] How do I install mongodb on the beaglebone black

查看:62
本文介绍了如何在beaglebone黑色上安装mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在beaglebone black上运行mongodb取得了成功吗?我必须安装其他类型的linux才能使其正常工作还是可以使用Angstrom.

解决方案

MongoDB(从2.4开始)不正式支持ARM处理器.您可以在问题跟踪器中观看/支持 SERVER-1811 ,但是我不希望直到有普遍可用的64位服务器级ARM处理器时,这种方法才能吸引很多人的注意.

通常,内存有限(BeagleBone Black上为512Mb RAM)的32位低功耗ARM处理器不适用于像MongoDB这样的具有内存映射的数据库服务器.由于使用了内存映射文件,因此MongoDB的32位版本也 解决方案

MongoDB (as at 2.4) does not officially support ARM processors. You can watch/upvote SERVER-1811 in the issue tracker, however I wouldn't expect this to get much traction until there are 64-bit server-class ARM processors commonly available.

In general a 32-bit low power ARM processor with limited memory (512Mb RAM on the BeagleBone Black) is not a great fit for a memory-mapped database server like MongoDB. Due to the use of memory-mapped files, 32-bit versions of MongoDB are also limited to about 2GB of data and indexes.

There are some extremely old versions of MongoDB that have been hacked to work on ARM to some extent (eg: MongoDB 2.1.1-pre), which is a very early development release of MongoDB 2.2. I wouldn't recommend this unless you're extremely desperate; likely you will spend far more time trying to get things working than writing productive code.

Better approaches would be to either:

  • use a database which is designed for lightweight environments (eg. SQLite)
  • use your BeagleBone to run a MongoDB client application rather than a server

这篇关于如何在beaglebone黑色上安装mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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