added fedora info based on testing
This commit is contained in:
@@ -32,6 +32,21 @@ sudo dnf install postgresql-server
|
|||||||
sudo /usr/bin/postgresql-setup --initdb
|
sudo /usr/bin/postgresql-setup --initdb
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Edit database access config
|
||||||
|
```sh
|
||||||
|
sudo nano /var/lib/pgsql/data/pg_hba.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
Find these lines:
|
||||||
|
```sh
|
||||||
|
# IPv4 local connections:
|
||||||
|
host all all 127.0.0.1/32 ident
|
||||||
|
# IPv6 local connections:
|
||||||
|
host all all ::1/128 ident
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure the last item on each line (in this case `ident`) is changed to `md5`. Then restarted the database `sudo systemctl restart postgresql.service`
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
First make sure postgres is running:
|
First make sure postgres is running:
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Reference in New Issue
Block a user