Installing Percona Server for MongoDB from Binary Tarball

You can find links to the binary tarballs from the Percona website

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

    $ wget\
    $ tar xfz percona-server-mongodb-4.2.0-1-bionic-x86_64-bundle.tar.gz
  2. Copy the extracted binaries to the target directory, for example:

    mkdir ~/psmdb
    cp -r -n percona-server-mongodb-4.2.0-1-bionic-x86_64-bundle/bin ~/psmdb/
  3. Add the location of the binaries to the PATH variable: export PATH ~/psmdb/bin:$PATH

  4. Create the default data directory: mkdir -p /data/db

  5. Make sure that you have read and write permissions for the data directory and run mongod.