简体   繁体   English

如何在beaglebone黑色上安装mongodb

[英]How do I install mongodb on the beaglebone black

Has anyone had any success running mongodb on the beaglebone black? 有没有人在beaglebone黑色上运行mongodb有什么成功? do I have to install a different flavor of linux to get this to work or can I use angstrom. 我是否必须安装不同版本的linux才能使其正常工作或者我可以使用angstrom。

MongoDB (as at 2.4) does not officially support ARM processors. MongoDB(截至2.4)并未正式支持ARM处理器。 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. 您可以在问题跟踪器中观察/ upvote SERVER-1811 ,但是在通常可用的64位服务器级ARM处理器之前,我不希望这会有太多牵引力。

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. 通常,具有有限内存的32位低功耗ARM处理器(BeagleBone Black上的512Mb RAM)不适合像MongoDB这样的内存映射数据库服务器。 Due to the use of memory-mapped files, 32-bit versions of MongoDB are also limited to about 2GB of data and indexes . 由于使用了内存映射文件,32位版本的MongoDB也仅限于大约2GB的数据和索引

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. 有迹象表明,已经被砍死在ARM工作在一定程度上的MongoDB的一些非常旧的版本(如: MongoDB的2.1.1预 ),这是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) 使用专为轻量级环境设计的数据库(例如SQLite)
  • use your BeagleBone to run a MongoDB client application rather than a server 使用BeagleBone运行MongoDB 客户端应用程序而不是服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM