From 9e64276e57b6d0aac2c34bb941879ae4e0c7f66a Mon Sep 17 00:00:00 2001 From: Aiden Gerbrandt Date: Thu, 12 Mar 2026 09:49:35 -0500 Subject: [PATCH] added service info --- Postgresql.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Postgresql.md b/Postgresql.md index ae71aea..40d75e9 100644 --- a/Postgresql.md +++ b/Postgresql.md @@ -27,6 +27,23 @@ sudo dnf install postgresql-server ``` ## 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: ```sh sudo -u postgres psql