Revert "remove shell"

This reverts commit 65914f8895.
This commit is contained in:
root
2023-09-24 18:58:33 +03:00
parent 65914f8895
commit c793b55750
26 changed files with 132 additions and 132 deletions

View File

@ -5,31 +5,31 @@ 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>';"
```