KhTech - Заметки

Рабочие заметки и инструкции

View the Project on GitHub

Установка и использование PostageSQL для работы в микросервисной архитектуре

Установка

sudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo dnf install -y postgresql16-server
sudo /usr/pgsql-16/bin/postgresql-16-setup initdb
sudo systemctl enable --now postgresql-16

Настройка

sudo -i -u postgres
createuser khtapi
createdb khtapi
vim /var/lib/pgsql/16/data/pg_hba.conf