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- Install PostgreSQL 16.
Bash
xxxxxxxxxxsudo apt install -y postgresql-16- Install additional supplied modules and extensions.
Bash
xxxxxxxxxxsudo apt install 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
- Install the repository RPM.
Bash
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm- Disable the built-in PostgreSQL modules.
Bash
xxxxxxxxxxsudo dnf -qy module disable postgresql- Install PostgreSQL 16.
Bash
xxxxxxxxxxsudo dnf install -y postgresql16-server- Install additional supplied modules and extensions.
Bash
xxxxxxxxxxsudo apt install postgresql-contrib- Initialize the database and enable automatic start.
Bash
xxxxxxxxxxsudo /usr/pgsql-16/bin/postgresql-16-setup initdbsudo systemctl enable --now postgresql-16- 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 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