pg_ctl

pg_ctl is used to start and stop the PostgreSQL server.

To start PostgreSQL, run

pg_ctl start -D /path/to/datadir

You can also use stop/restart.

Advertisement

pg_ctl stop -D /path/to/datadir
pg_ctl restart -D /path/to/datadir
Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement