Skip to content

How to restart postgres in Ubuntu?

Posted in Postgres, and Ubuntu

If you have Ubuntu 16.04 use next command to restart Postgres:

sudo service postgresql restart

If you have Ubuntu 18.04 use next command to restart Postgres:

sudo systemctl restart postgresql.service

If you want to know the status of Postgres uses the next command:

systemctl status postgresql.service

You have to see something like this:

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.