How to restart PostgreSQL on CentOS 7

In this tutorial, we are going to see process to restart PostgreSQL on CentOS Linux Distribution by two methods.

Restart PostgreSQL by using systemctl command:

systemctl restart postgresql-10

Restart PostgreSQL by using service command:

service postgresql-10 restart