mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:02:18 +02:00
Add pg_ctl page (#1835)
This commit is contained in:
parent
8963a4ea3c
commit
22042bb46e
1 changed files with 19 additions and 0 deletions
19
pages/common/pg_ctl.md
Normal file
19
pages/common/pg_ctl.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# pg_ctl
|
||||
|
||||
> Utility for controlling a PostgreSQL server and database cluster.
|
||||
|
||||
- Start a PostgreSQL server:
|
||||
|
||||
`pg_ctl -D {{data_directory}} -l {{log_file_name}}`
|
||||
|
||||
- Initialize a PostgreSQL database cluster:
|
||||
|
||||
`pg_ctl -D {{data_directory}} init`
|
||||
|
||||
- Stop a PostgreSQL server:
|
||||
|
||||
`pg_ctl -D {{data_directory}} stop`
|
||||
|
||||
- Restart a PostgreSQL server:
|
||||
|
||||
`pg_ctl -D {{data_directory}} restart`
|
Loading…
Add table
Reference in a new issue