Installation
We recommend using MongoDB 2.4 or newer.
Debian:
Debian 7.0 (aka Wheezy) ships with a much older version, which should work but very likely won't provide adequate performance. However, the mongodb packages in wheezy-backports are fine, as are the versions in Testing/Jessie and Unstable. First make sure that you have Backports or Testing/Unstable enabled, then use sudo
or su
to run the following command as root
:
Code Block |
---|
apt-get install mongodb-clients mongodb-server |
As an alternative you can also download Debian-ready packages from the MongoDB site, which do however use a different package name.
Ubuntu:
All recent Recent versions of Debian-derived distributions Ubuntu come with suitable MongoDB packages. Use sudo
or su
to become the root
user, then run the following command:
...