remove shell

This commit is contained in:
root
2023-09-24 18:46:20 +03:00
parent 78f49dc907
commit 65914f8895
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>';"
```