From f073040cc1d98824dd74b90b07d7cdaf675b815c Mon Sep 17 00:00:00 2001 From: Kaimbacher Date: Thu, 30 Jun 2022 14:31:33 +0000 Subject: [PATCH] Update 'Install_PostgreSQL_14_and_PostGIS_3' --- Install_PostgreSQL_14_and_PostGIS_3.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Install_PostgreSQL_14_and_PostGIS_3.md b/Install_PostgreSQL_14_and_PostGIS_3.md index ee85d63..7af013a 100644 --- a/Install_PostgreSQL_14_and_PostGIS_3.md +++ b/Install_PostgreSQL_14_and_PostGIS_3.md @@ -10,6 +10,14 @@ sudo apt update sudo apt install postgresql postgresql-contrib sudo apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts ``` +After installing PostgreSQL, the commands below can be used to stop, start, enable and check its status: + +```bash +sudo systemctl stop postgresql.service +sudo systemctl start postgresql.service +sudo systemctl enable postgresql.service +sudo systemctl status postgresql.service +``` Viewing the server version\ `/usr/lib/postgresql/12/bin/postgres -V` \