LinuxでPostgreSQLのコマンドを実行します。

閉じる:サービスPostgreSQLの停止

開始:サービスPostgreSQLの開始を

データベースを起動します。-D /データ/ postgresのを開始するにpg_ctl

  • pg_ctlは再起動-D /データ/ postgresの:データベースを再起動します。
  • データベースを停止します。pg_ctlが停止-D /データ/ postgresの
  • 強制再起動:再起動にpg_ctl -D /データ/ postgresの-MF
  • 強制停止:停止にpg_ctl -D /データ/ postgresの-MF
  • ロード構成:にpg_ctlリロード-D /データ/ postgresの
  • 表示サービスステータス:ステータスにpg_ctl -D /データ/ postgresの
  • データベースへの接続:5432の-d postgresの-pはpsql -h 127.0.0.1 -U postgresの-W

プロファイルパス:postgresqlの/データ/ viのpostgresql.confの

おすすめ

転載: www.cnblogs.com/zxy-come-on/p/11102943.html