added service info

This commit is contained in:
2026-03-12 09:49:35 -05:00
parent 2b5f637064
commit 9e64276e57

View File

@@ -27,6 +27,23 @@ sudo dnf install postgresql-server
``` ```
## Setup ## Setup
First make sure postgres is running:
```sh
systemctl status postgresql.service
```
If not, start it with:
```sh
sudo systemctl start postgresql.service
```
If you want it to start on boot, you can enable it with:
```sh
sudo systemctl enable postgresql.service
```
To stop it from starting on boot, replace enable with disable.
Initially the postgres database user will not have a password to allow access. To access the database run the following: Initially the postgres database user will not have a password to allow access. To access the database run the following:
```sh ```sh
sudo -u postgres psql sudo -u postgres psql