feat:adjust postgres
This commit is contained in:
parent
1304c3bff1
commit
39929f9e22
|
@ -0,0 +1,23 @@
|
|||
# Setup Postgres
|
||||
|
||||
* get the latest version of installed packages and refresh the repo cache
|
||||
```
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
* install postgres directly from the official repository
|
||||
```
|
||||
sudo apt-get install postgresql --no-install-recommends
|
||||
```
|
||||
|
||||
* validate the existence of the postgres admin user
|
||||
```
|
||||
cat /etc/passwd|grep postgres
|
||||
cat /etc/group|grep postgres
|
||||
```
|
||||
|
||||
* set key for admin user postgres
|
||||
```
|
||||
sudo -u postgres psql
|
||||
postgres=# \password postgres
|
||||
```
|
|
@ -0,0 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Software Ingenieur Begerad <swingbe.de>
|
||||
*
|
||||
* SPDX-License-Identifier: CC0-1.0
|
||||
*/
|
|
@ -1,26 +1,6 @@
|
|||
# Setup Postgres
|
||||
|
||||
* get the latest version of installed packages and refresh the repo cache
|
||||
```
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
* install postgres directly from the official repository
|
||||
```
|
||||
sudo apt-get install postgresql --no-install-recommends
|
||||
```
|
||||
|
||||
* validate the existence of the postgres admin user
|
||||
```
|
||||
cat /etc/passwd|grep postgres
|
||||
cat /etc/group|grep postgres
|
||||
```
|
||||
|
||||
* set key for admin user postgres
|
||||
```
|
||||
sudo -u postgres psql
|
||||
postgres=# \password postgres
|
||||
```
|
||||
* install Postgres like [this](./postgres-install.md)
|
||||
|
||||
* create copy of config file ```pg_hba.conf file```\
|
||||
NOTE: Insert the postgresql version <psql version> that is running on the respective host
|
||||
|
|
Loading…
Reference in New Issue