国产成人AV无码一二三区,少女1到100集,国产精品久久久久精品综合紧,巜公妇之诱感肉欲HD在线播放

文章 > PostgreSQL > postgresql数据库怎么重启

postgresql数据库怎么重启

头像

silencement

2020-02-21 18:57:275739浏览 · 0收藏 · 0评论

启动一个postgres最简单的方法是使用postgres命令(执行前请确认data目录已经被初始化完成)

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

推荐:postgrsql教程

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服务器于一体的实用程序。

更多技术请关注Python视频教程。

关注

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

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

9.1国外黄冈B站| 舒淇| 日韩精品国产一区二区三区| 麻豆| 15岁的少女与狗高清电视| 国产X9X9X9X9X9X任意...| 国精产品一品二品国精| 100张美女光溜溜的背景图片 | 二人生猴子全程免费| 九九在线观看免费播放大全电视剧| 免费观看B站刺激战场2023| 男按摩师舌头伸进去了SPA漫画| 续父开续女包小芳有没有出版? | 日本大片又大又好看的PPT| 王一扬| 美女两个球球抖动抓球球视频| 关于爱| 学校体检要用手扒开前面吗 | 白丝脚上的浓浓的精华液能用吗| 透明泳装秀| 亲吻刺激战场视频大全真人版免费.. | 《打烊后仅剩的沙龙樱花片尾曲》 | 《有夫之妇的秘书》演员表| 女子赤身跳钢管舞视频| 刚长毛的初一女生年龄范围 | 美国伦理《欲奴3)| 当着老公的面被维修工欺负 | 爸爸吃女儿奶奶高情商回复| 欧美一区二区| 被扣到眼神失焦| 无人区在线高清免费看电视剧| 芬太尼事件对中国形成的危害| 真人刺激战场40分钟电视剧| 按摩师把我添高潮了6次| 亚洲AV无码精品色午夜蜜桃| 电影《满足2》完整版在线观看| 美女图片| 夫妻二人世界免费看第一集| おまえの母亲をだます的歌词 | 土豆视频| 4444444在线观看免费高清...