Databases Reference
In-Depth Information
Decompress the .tar.gz file you downloaded from http://www.mongodb.org .
$ tar zxf mongodb-linux-i686-1.6.0.tar.gz
$ cd mongodb-linux-i686-1.6.0
Now you can start the database:
$ bin/mongod
Or if you'd like to use an alternate database path, specify it with the --dbpath option:
$ bin/mongod --dbpath ~/db
See Chapter 8 for a summary of the most common options, or run mongod with
--help to see all the possible options.
Installing from a Package Manager
On these systems, there are many package managers that can also be used to install
MongoDB. If you prefer using one of these, there are official packages for Debian and
Ubuntu and unofficial ones for Red Hat, Gentoo, and FreeBSD. If you use an unofficial
version, make sure to check the logs when you start the database; sometimes these
packages are not built with UTF-8 support.
On Mac, there are also unofficial packages in Homebrew and MacPorts. If you go for
the MacPorts version, be forewarned: it takes hours to compile all the Boost libraries,
which are MongoDB prerequisites. Start the download, and leave it overnight.
Regardless of the package manager you use, it is a good idea to figure out where it is
putting the MongoDB log files before you have a problem and need to find them. It's
important to make sure they're being saved properly in advance of any possible issues.
 
Search WWH ::




Custom Search