Install 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
There are the following tarballs available:
-
percona-server-mongodb-8.0.4-1-x86_64.<operating-system>.tar.gz
is the tarball for a supported operating system. -
percona-mongodb-mongosh-2.3.2-x86_64.tar.gz
is the tarball formongosh
shell.
Tarball types¶
Type | Name | Description |
---|---|---|
Full | percona-server-mongodb-8.0.4-1-x86_64. |
Contains binaries and libraries |
Minimal | percona-server-mongodb-8.0.4-1-x86_64. |
Contains binaries and libraries without debug symbols |
Checksum | percona-server-mongodb-8.0.4-1-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¶
Follow these steps to install Percona Server for MongoDB from a tarball:
-
Fetch the binary tarballs:
2. Extract the tarballswget https://www.percona.com/downloads/percona-server-mongodb-8.0/percona-server-mongodb-8.0.4-1/binary/tarball/percona-server-mongodb-8.0.4-1-x86_64.jammy.tar.gz\ $ wget https://www.percona.com/downloads/percona-server-mongodb-8.0/percona-server-mongodb-8.0.4-1/binary/tarball/percona-mongodb-mongosh-2.3.2-x86_64.tar.gz
$ tar -xf percona-server-mongodb-8.0.4-1-x86_64.jammy.tar.gz $ tar -xf percona-mongodb-mongosh-8.0.4-1-x86_64.tar.gz
-
Add the location of the binaries to the
PATH
variable:$ export PATH=~/percona-server-mongodb-8.0.4-1/bin/:~/percona-mongodb-mongosh-2.3.2/bin/:$PATH
-
Create the default data directory:
$ mkdir -p /data/db
-
The new TCMalloc requires Restartable Sequences (rseq) to implement per-CPU caches . To ensure that TCMalloc can use rseq, prevent glibc from registering an rseq structure. To do this, set the following environment variable:
GLIBC_TUNABLES=glibc.pthread.rseq=0 $ export GLIBC_TUNABLES
-
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.