postgresql營運

來源:互聯網
上載者:User

標籤:

0. 協助
$/home/lhl/az/pg/bin/pg_ctl --helppg_ctl is a utility to initialize, start, stop, or control a PostgreSQL server.Usage:  pg_ctl init[db]               [-D DATADIR] [-s] [-o "OPTIONS"]  pg_ctl start   [-w] [-t SECS] [-D DATADIR] [-s] [-l FILENAME] [-o "OPTIONS"]  pg_ctl stop    [-W] [-t SECS] [-D DATADIR] [-s] [-m SHUTDOWN-MODE]  pg_ctl restart [-w] [-t SECS] [-D DATADIR] [-s] [-m SHUTDOWN-MODE]                 [-o "OPTIONS"]  pg_ctl reload  [-D DATADIR] [-s]  pg_ctl status  [-D DATADIR]  pg_ctl promote [-D DATADIR] [-s]  pg_ctl kill    SIGNALNAME PIDCommon options:  -D, --pgdata=DATADIR   location of the database storage area  -s, --silent           only print errors, no informational messages  -t, --timeout=SECS     seconds to wait when using -w option  -V, --version          output version information, then exit  -w                     wait until operation completes  -W                     do not wait until operation completes  -?, --help             show this help, then exit(The default is to wait for shutdown, but not for start or restart.)If the -D option is omitted, the environment variable PGDATA is used.Options for start or restart:  -c, --core-files       allow postgres to produce core files  -l, --log=FILENAME     write (or append) server log to FILENAME  -o OPTIONS             command line options to pass to postgres                         (PostgreSQL server executable) or initdb  -p PATH-TO-POSTGRES    normally not necessaryOptions for stop or restart:  -m, --mode=MODE        MODE can be "smart", "fast", or "immediate"Shutdown modes are:  smart       quit after all clients have disconnected  fast        quit directly, with proper shutdown  immediate   quit without complete shutdown; will lead to recovery on restart
1. 安裝2. 啟動
pg_ctl start -D pgdata
3. 關閉
pg_ctl stop -D pgdata
orpg_ctl stop -m fast -D pgdata
4. 死結處理

參考

postgresql營運

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.