韩漫免费漫画在线观看方法,《好好疼爱里面》免费看,年轻漂亮的女士护士内衣,妈妈醉酒后把我当爸爸电视剧

文章 > PostgreSQL > postgresql异常怎么重启

postgresql异常怎么重启

头像

silencement

2020-03-13 14:34:563645浏览 · 0收藏 · 0评论

重启postgres最简单的方法是使用postgres命令

服务器必须由PostgreSQL用户帐户运行,而不是由root用户或任何其他用户运行,所以先确认切换为postgres用户

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

这个命令使得数据库在前台运行,为了使得运维数据库更加方便,包装程序pg_ctl将简化一些操作,先看看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是一个集初始化,启动,停止,或者控制PostgreSQL服务器于一体的实用程序。

关注

关注公众号,随时随地在线学习

本教程部分素材来源于网络,版权问题联系站长!

黑丝| 久久精品国产亚洲AV四虎百花| 士豆网视频| 搜酷| 老公装醉看我和别人在一起| 美国禁忌2在线观看电视剧| 国产在线观看免费全集电视剧网站| 小小水蜜桃1| 小叔子从后面抱住我的电视剧| 坐在竹马鸡上背单词小说| 美国禁忌:性炮交| 查尔斯布朗森| 《再来一次好吗》免费观看 | 我把刘姨俩腿扛在肩上是哪一集的| 真人刺激战场40分钟电视剧| 《法国空乘4》在线观看| 美女和老板一起努力做豆浆 | 跳舞不小心胸跳出来了怎么办| 美女和帅哥一起努力生产豆浆| 东北老阿姨高清免费观看电视剧| WWWWWWWW在线观看国产| 《蹂躇》无删减版| 男欢女爱免费观看王霞电视剧剧情| 坠入春夜短剧免费观看完整版| 爸爸吃女儿奶奶高情商回复| 老阿姨高清免费观看电视剧| 伦理《少妇的滋味》完整版| 男生的困困赛女生的困困里 | 电视剧在线观看免费 | 白日梦我电视剧| 麻豆 无码 国产在线观看| DJ快了又快又骚的POP歌曲| 吃瓜群众在线爆料免费观看| 姐姐片多多免费高清电视剧| 我的老师中韩双字ID| 教室停电插班花赵柔笔趣阁| 高压监狱在线观看免费高清完整 | 俄罗斯电影| 续父开续女包小芳有没有出版?| 国精产品一品二品国精HTC| 老翁玩嫩媳