安装mongodb 版本>3 raspberry pi 2 [英] Install mongodb version >3 raspberry pi 2

查看:25
本文介绍了安装mongodb 版本>3 raspberry pi 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在树莓派上安装大于 3.2 的 mongo db 版本,并在树莓派上安装 RASPBIAN JESSIE LITE?

Is it possible to install a mongo db version greater than 3.2 on raspberry pi with RASPBIAN JESSIE LITE installed on the pi?

我只成功使用本教程获得了 2.1 版.

I only succeed to have the version 2.1 using this tutorial.

http://www.widriksson.com/install-mongodb-raspberrypi/

我尝试了很多教程,但找不到适用于更高版本的教程.

I tried a lot of tutorial but impossible to find one which work for greater versions.

推荐答案

因为它已经写在评论中,所以您只能使用 32 位版本.

As it was already written in the comments, you are limited to the 32-bit version.

有严重的缺点:

  • 可以存储的数据小于 2Gb(可能会少很多),因为 WiredTiger 不可用并且 MMAPv1 被限制为最大文件大小为 2Gb,因为它大量使用内存映射.它在 32 位机器上的可寻址空间非常有限
  • WiredTiger 存储引擎不可用.它允许压缩,因此对于有限的资源特别有趣.
  • MongoDB 需要 RAM.越多越好.索引需要它,连接需要它,嗯,内存映射很好地利用了它.好吧,我们只有 32 位.MongoDB Inc 决定不为一项垂死的技术创建变通方法.所以不要指望这会改变
  • 然而,最大的缺点是日志和复制基本上是不可行的,因为这进一步限制了您可以存储的数据量.没有日志意味着您的数据的持久性有限(除非您愿意通过使用相应的写入关注来强制将数据同步到磁盘以进行每次写入),而缺乏复制和由此导致的故障转移功能的缺乏很可能较少对 Raspi 的关注.
  • The data which can be stored is less than 2Gb (potentially a lot less), since WiredTiger is not available and MMAPv1 is limited to a maximum file size of 2Gb since it makes heavy use of memory-mapping. It simply has a very limited addressable space on 32-bit machines
  • The WiredTiger storage engine is not available. It allows compression and hence would be especially interesting for limited resources.
  • MongoDB needs RAM. The more, the better. Indexes need it, connections need it desperately, and hm, the memory mapping makes good use of it. And well, we are only on 32bits. MongoDB Inc decided against creating workarounds for a dying technology. So do not expect this to change
  • The biggest drawback, however, is that journaling and replication are basically No-Gos since the further limit the amount of data you can store. No journaling translates to limited durability of your data (unless you are willing to force the data to be synced to disk for each write by using an according write concern), while the lack of replication and the resulting lack of failover capabilities most likely is less of a concern on a Raspi.

MongoDB Inc 强烈建议不要将 32 位版本用于测试目的以外的目的.他们这样做是有充分理由的.就我个人而言,我生成的测试数据远远超过了 32 位版本的限制.

MongoDB Inc strongly advises against using the 32-bit version for other than testing purposes. And they do so for a good reason. Personally, my generated test data by far exceeds the limitations of the 32-bit version.

所以是的,它在技术上应该是可能的(即使手头没有包:编译 MongoDB 不是火箭科学).这是个好主意吗?好吧,如果你问我的话,不是那么多.

So yes, it should be technically possible (and even with no package at hand: compiling MongoDB is no rocket science). Is it a good idea? Well, not so much, if you ask me.

这篇关于安装mongodb 版本>3 raspberry pi 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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