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. The list provides a binary tarball for every supported operating system.
Tarball types¶
| Type | Name | Description |
|---|---|---|
| Full | percona-server-mongodb-5.0.29-25-x86_64. |
Contains binaries and libraries |
| Minimal | percona-server-mongodb-5.0.29-25-x86_64. |
Contains binaries and libraries without debug symbols |
| Checksum | percona-server-mongodb-5.0.29-25-x86_64. |
Contains the MD5 checksum to verify the integrity of the files after the extraction |
Preconditions¶
Install the following dependencies required to install Percona Server for MongoDB from tarballs.
$ sudo yum install openldap cyrus-sasl-gssapi curl
$ sudo apt install curl libsasl2-modules-gssapi-mit
$ sudo apt curl libsasl2-modules-gssapi-mit
Procedure¶
The following example installs Percona Server for MongoDB from a tarball on Ubuntu 22.04. Replace the link to the tarballs for your desired operating system in the following steps:
-
Fetch the binary tarball:
$ wget https://www.percona.com/downloads/percona-server-mongodb-5.0/percona-server-mongodb-5.0.29-25/binary/tarball/percona-server-mongodb-5.0.29-25-x86_64.jammy.tar.gz\ -
Extract the tarball
$ tar -xf percona-server-mongodb-5.0.29-25-x86_64.jammy.tar.gz -
Add the location of the binaries to the
PATHvariable:$ export PATH=~/percona-server-mongodb-5.0.29-25/bin/:$PATH -
Create the default data directory:
$ mkdir -p /data/db -
Make sure that you have read and write permissions for the data directory and run
mongod.
Next steps¶
Get expert help¶
If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.