内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

啟動(dòng)一個(gè)postgres的方法

這篇文章主要介紹啟動(dòng)一個(gè)postgres的方法,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!

成都創(chuàng)新互聯(lián)專注于彌渡網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供彌渡營(yíng)銷型網(wǎng)站建設(shè),彌渡網(wǎng)站制作、彌渡網(wǎng)頁設(shè)計(jì)、彌渡網(wǎng)站官網(wǎng)定制、小程序定制開發(fā)服務(wù),打造彌渡網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供彌渡網(wǎng)站排名全網(wǎng)營(yíng)銷落地服務(wù)。

啟動(dòng)一個(gè)postgres的方法

啟動(dòng)一個(gè)postgres最簡(jiǎn)單的方法是使用postgres命令(執(zhí)行前請(qǐng)確認(rèn)data目錄已經(jīng)被初始化完成)

服務(wù)器必須由PostgreSQL用戶帳戶運(yùn)行,而不是由root用戶或任何其他用戶運(yùn)行,所以先確認(rèn)切換為postgres用戶

postgres@me:/usr/local/pgsql$ ./bin/postgres -D ./data

這個(gè)命令使得數(shù)據(jù)庫在前臺(tái)運(yùn)行,為了使得運(yùn)維數(shù)據(jù)庫更加方便,包裝程序pg_ctl將簡(jiǎn)化一些操作,先看看pg_ctl的幫助信息:

postgres@me:/usr/local/pgsql$ ./bin/pg_ctl --help
pg_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    [-D DATADIR] [-l FILENAME] [-W] [-t SECS] [-s]
                  [-o OPTIONS] [-p PATH] [-c]
  pg_ctl stop     [-D DATADIR] [-m SHUTDOWN-MODE] [-W] [-t SECS] [-s]
  pg_ctl restart  [-D DATADIR] [-m SHUTDOWN-MODE] [-W] [-t SECS] [-s]
                  [-o OPTIONS] [-c]
  pg_ctl reload   [-D DATADIR] [-s]
  pg_ctl status   [-D DATADIR]
  pg_ctl promote  [-D DATADIR] [-W] [-t SECS] [-s]
  pg_ctl kill     SIGNALNAME PID

Common 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             wait until operation completes (default)
  -W, --no-wait          do not wait until operation completes
  -?, --help             show this help, then exit
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=OPTIONS  command line options to pass to postgres
                         (PostgreSQL server executable) or initdb
  -p PATH-TO-POSTGRES    normally not necessary

Options 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 (default)
  immediate   quit without complete shutdown; will lead to recovery on restart

Allowed signal names for kill:
  ABRT HUP INT QUIT TERM USR1 USR2

一句話描述:pg_ctl是一個(gè)集初始化,啟動(dòng),停止,或者控制PostgreSQL服務(wù)器于一體的實(shí)用程序。

以上是啟動(dòng)一個(gè)postgres的方法的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

文章名稱:啟動(dòng)一個(gè)postgres的方法
標(biāo)題鏈接:http://www.rwnh.cn/article2/gdopic.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、標(biāo)簽優(yōu)化、網(wǎng)頁設(shè)計(jì)公司響應(yīng)式網(wǎng)站、軟件開發(fā)網(wǎng)站改版

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設(shè)
虹口区| 镇赉县| 忻州市| 华容县| 潮州市| 洪江市| 安泽县| 赤水市| 阿鲁科尔沁旗| 沙河市| 南宁市| 宜黄县| 会理县| 房产| 若尔盖县| 安徽省| 镇坪县| 攀枝花市| 临夏县| 常州市| 永济市| 安陆市| 裕民县| 梅河口市| 华蓥市| 邹平县| 博爱县| 松阳县| 商河县| 广南县| 牡丹江市| 镇江市| 罗甸县| 灯塔市| 潢川县| 睢宁县| 大渡口区| 镇远县| 广西| 南丹县| 南宁市|