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
'backend > sql (postgres)' 카테고리의 다른 글
Mac (OS X)에 postgres 설치하기 (sierra 10.12.6) (0) | 2017.11.28 |
---|---|
ubuntu postgres systemctl restart 명령어 (0) | 2017.11.22 |
postgres 작동 안될 때 list-dependencies 확인하기 (0) | 2017.11.15 |
postgres basic usage-about Role (0) | 2017.10.22 |
다른 서버에서 postgres 접속하기 (5432 포트) (0) | 2017.10.21 |