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.

pg_ctl stop -D /path/to/datadir
pg_ctl restart -D /path/to/datadir

Back to PostgreSQL

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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