Installation
v2.6.0
Search this version
Installation
Installation
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Linux
Copy Markdown
Open in ChatGPT
Open in Claude
PostgreSQL version 16.9 or higher is required.
Debian, Ubuntu
Install PostgreSQL
- Add the official PostgreSQL repository.
Bash
xxxxxxxxxxsudo apt install -y postgresql-commonsudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh # Automated get VERSION_CODENAMEsource /etc/os-releaseecho "Using VERSION_CODENAME: $VERSION_CODENAME" # Add PostgreSQL software repositorysudo tee /etc/apt/sources.list.d/pgdg.sources <<EOFTypes: deb deb-srcURIs: https://apt.postgresql.org/pub/repos/aptSuites: $(echo $VERSION_CODENAME)-pgdgArchitectures: amd64Components: mainSigned-By: /usr/share/postgresql-common/pgdg/apt.postgresql.org.ascEOF sudo apt update- Install PostgreSQL 16.
Bash
xxxxxxxxxxsudo apt install -y postgresql-16- Install additional supplied modules and extensions.
Bash
xxxxxxxxxxsudo apt install -y postgresql-contrib- Configures PostgreSQL to start automatically whenever the system boots.
Bash
xxxxxxxxxxsudo systemctl enable --now postgresql- Setup login password. Make sure to save this password for later use.
Bash
xxxxxxxxxxsudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '<your_password>';"Open connection
- Locate the PostgreSQL data directory on your server.
Bash
xxxxxxxxxx/etc/postgresql/<version>/main/- To allow remote connections, open the
postgresql.conffile and configure the following setting:
postgresql.conf
xxxxxxxxxxlisten_addresses = '*'- To allow MetaDefender Cluster services to access the database, open the
pg_hba.conffile and add the following rule.
pg_hba.conf
xxxxxxxxxxhost all all 0.0.0.0/0 scram-sha-256- Restart the PostgreSQL service to apply the changes.
Bash
xxxxxxxxxxsudo systemctl restart postgresqlRocky, RHEL 9
Install PostgreSQL
- Copy, paste, and run the relevant parts of the setup script:
Bash
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo dnf install -y postgresql16-serversudo /usr/pgsql-16/bin/postgresql-16-setup initdbsudo systemctl enable postgresql-16sudo systemctl start postgresql-16- Install additional supplied modules and extensions.
Bash
xxxxxxxxxxsudo dnf install -y postgresql16-contrib- Setup login password. Make sure to save this password for later use.
Bash
xxxxxxxxxxsudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '<your_password>';"Open connection
- Locate the PostgreSQL data directory on your server.
Bash
xxxxxxxxxx/var/lib/pgsql/16/data- To allow remote connections, open the
postgresql.conffile and configure the following setting:
postgresql.conf
xxxxxxxxxxlisten_addresses = '*'- To allow MetaDefender Cluster services to access the database, open the
pg_hba.conffile and add the following rule.
pg_hba.conf
xxxxxxxxxxhost all all 0.0.0.0/0 scram-sha-256- Restart the PostgreSQL service to apply the changes.
Bash
xxxxxxxxxxsudo systemctl restart postgresql-16Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Air-gappednull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message