CATEGORIES

TAGS

SSL

PostgreSQL

cPanel

email

Error

WHM

Linux

Bash

Debian

Ubuntu

How to restart PostgreSQL

18th August
LinuxPostgreSQL
How to restart PostgreSQL

For restarting PostgreSQL you can use the commands “stop” and “start” or “restart” but into cases, you must be a “super user” (use the command “sudo” or “su”). Let’s see how to restart PostgreSQL in Red Hat system:

Step 1


Restarting PostgreSQL with commands “stop” and “start”:
First, you need to stop your server with below command:
Copied!

sudo systemctl stop postgresql



Then again start it:
Copied!

sudo systemctl start postgresql



Restarting PostgreSQL with “restart” command: it is simple! just write:
Copied!

sudo systemctl restart postgresql



We suggest you to check the server status after both of cases. To do this, use the following command:
Copied!

systemctl status postgresql-service



And into the Debian system.

Step 1


You can use the commands “start” and “stop”
Copied!

sudo systemctl stop postgresql



Copied!

sudo systemctl start postgresql



or just “restart”
Copied!

sudo systemctl restart postgresql



and don’t forget to check the server status with the command:
Copied!

sudo systemctl status postgresql




You can use alternative option also
Copied!

/etc/init.d/postgresql restart



Then again start it:
Copied!

/etc/init.d/postgresql status



That is all!!!


SUBSCRIBE by email and never miss a post!