mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2024-11-16 17:37:17 +03:00
36 lines
1002 B
Markdown
36 lines
1002 B
Markdown
|
---
|
||
|
title: Установка Postgres Pro на Astra Linux SE
|
||
|
description: Инструкция по установке из репозитория Postgres Proffessional
|
||
|
date: 2022-11-25T16:20:00+05:00
|
||
|
tags: [linux, astra, postgres]
|
||
|
---
|
||
|
## Добавление репозитория
|
||
|
``` shell
|
||
|
apt -y install gnupg
|
||
|
wget -O - http://repo.postgrespro.ru/keys/GPG-KEY-POSTGRESPRO | apt-key add -
|
||
|
echo "deb http://repo.postgrespro.ru/pgpro-14/astra-smolensk/1.7 1.7_x86-64 main" \
|
||
|
> /etc/apt/sources.list.d/pgpro.list
|
||
|
```
|
||
|
## Установка пакета
|
||
|
```shell
|
||
|
apt update
|
||
|
apt -y install postgrespro-std-14
|
||
|
```
|
||
|
|
||
|
## systemd
|
||
|
```shell
|
||
|
/opt/pgpro/std-14/bin/pg-setup service enable --now
|
||
|
ln -s /lib/systemd/system/postgrespro-std-14.service /etc/systemd/system/postgresql.service
|
||
|
```
|
||
|
|
||
|
## Обновление путей
|
||
|
```shell
|
||
|
/opt/pgpro/std-14/bin/pg-wrapper links update
|
||
|
```
|
||
|
|
||
|
## Смена пароля postgres
|
||
|
```shell
|
||
|
su - postgres
|
||
|
psql -c "ALTER USER postgres PASSWORD '<password>';"
|
||
|
```
|