Skip to content

Installing Percona Server for MongoDB from Binary Tarball

You can find links to the binary tarballs under the Generic Linux menu item on the Percona website

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

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

    $ export PATH=~/percona-server-mongodb-5.0.2-1/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.