mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-06-26 04:53:59 +03:00
remove shell
This commit is contained in:
@ -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>';"
|
||||
```
|
||||
|
Reference in New Issue
Block a user