little fixes

This commit is contained in:
2023-12-26 04:34:28 +06:00
parent 502633a0d5
commit 299a17db96
25 changed files with 113 additions and 49 deletions

View File

@ -5,6 +5,7 @@ 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 -
@ -12,23 +13,27 @@ echo "deb http://repo.postgrespro.ru/pgpro-14/astra-smolensk/1.7 1.7_x86-64 main
```
## Установка пакета
```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>';"