Skip to content

This documentation is for the end of life version of Percona Server for MongoDB and is no longer supported. You may want to see the current documentation.

Installing Percona Server for MongoDB from Binary Tarball

You can find the link to the binary tarball under the Generic Linux menu item on the Percona Server for MongoDB download page.

There are two tarballs available:

  • percona-server-mongodb-3.6.19-8.0-x86_64.glibc2.17.tar.gz is the general tarball, compatible with any operation system but for Centos 6.

  • percona-server-mongodb-3.6.19-8.0-x86_64.glibc2.12.tar.gz is the tarball for Centos 6.

  1. Fetch and extract the correct binary tarball. For example, if you are running Debian 10 (“buster”):

    $ wget https://www.percona.com/downloads/percona-server-mongodb-3.6/percona-server-mongodb-3.6.19-8.0/binary/tarball/percona-server-mongodb-3.6.19-8.0-x86_64.glibc2.17.tar.gz\
    $ tar -xf percona-server-mongodb-3.6.19-8.0-x86_64.glibc2.17.tar.gz
    
  2. Add the location of the binaries to the PATH variable:

    export PATH=~/percona-server-mongodb-3.6.19-8.0/bin/:$PATH
    
  3. Create the default data directory:

    mkdir -p /data/db
    
  4. Make sure that you have read and write permissions for the data directory and run mongod.