backend/sql (postgres)

Postgres restart in ubuntu 16.04

seul chan 2017. 10. 14. 16:51

How to restart postgresql in ubuntu 16.04?

First, you have to check psql running. check by pg_lscluseter

Then you can restart by few commands. (choose one or try all)

sudo service postgresql restart
sudo /etc/init.d/postgresql restart
# you should write version & name on result after pg_lscluster
pg_lsclusters 9.5 main restart