<b>nstall for</b>
64-bit Linux
<b>1</b>
<b>Download the</b>
binary files for the desired release of MongoDB.
Download the
binaries from https://www.mongodb.org/downloads.
For example, to download the latest
release through the shell, issue the following:
curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz
<b>2</b>
<b>Extract the</b>
files from the downloaded archive.
For example,
from a system shell, you can extract through the tar command:
tar -zxvf
mongodb-linux-x86_64-2.6.4.tgz
<b>3</b>
<b>Copy the</b>
extracted archive to the target directory.
Copy the
extracted folder to the location from which MongoDB will run.
mkdir -p mongodb
cp -R -n
mongodb-linux-x86_64-2.6.4/ mongodb
<b>4</b>
<b>Ensure the</b>
location of the binaries is in the <b>PATH</b><b> variable.</b>
The MongoDB
binaries are in the bin/ directory of the archive. To ensure
that the binaries are in yourPATH, you can modify your PATH.
For example, you can add the following
line to your shell’s rc file (e.g. ~/.bashrc):
export PATH=<mongodb-install-directory>/bin:$PATH
Replace <mongodb-install-directory> with the
path to the extracted MongoDB archive.