问题描述
是否可以在pi上安装RASPBIAN JESSIE LITE的树莓派上安装高于3.2的mongo db版本?
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.
哪些有严重的缺点:
- 由于WiredTiger不可用,并且由于MMAPv1大量使用内存映射,因此MMAPv1的最大文件大小限制为2Gb,因此可以存储的数据少于2Gb(可能要少得多).在32位计算机上,它的可寻址空间非常有限
- WiredTiger存储引擎不可用.它允许压缩,因此对于有限的资源尤其有用.
- MongoDB需要RAM.越多越好.索引需要它,连接迫切需要它,而 memory 映射hm很好地利用了它.而且,我们只有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树莓派2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!