postgresql运维
2016-09-09 12:35
225 查看
0. 帮助
$/home/lhl/az/pg/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 [-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 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 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 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 immediate quit without complete shutdown; will lead to recovery on restart
1. 安装
2. 启动
pg_ctl start -D pgdata
3. 关闭
pg_ctl stop -D pgdata or pg_ctl stop -m fast -D pgdata
4. 死锁处理
参考相关文章推荐
- AVAYA AEP运维之PostgreSQL数据库相关
- postgresql日常运维
- PostgreSQL运维命令整理
- PostgreSQL运维实战精讲之“postgresql源码安装”
- postgresql运维命令简记
- postgresql运维命令简记 转自:http://blog.csdn.net/hitzhang/archive/2010/09/16/5888028.aspx
- postgresql运维命令简记
- 【转自运维技术 - HackRoad.com】PostgreSQL中使用ALTER SYSTEM修改系统参数
- MySQL,Oracle,PostgreSQL,mongoDB 通过web方式管理维护, 提高开发及运维效率
- 解决PostgreSQL不能在Terminal Services会话中安装的问题
- PostgreSQL联结关键字 ON、USING、NATURAL
- 初级运维(一)
- POSTGRESQL 存储过程实战
- postgresql开源监控工具——pgwatch详细安装和测试
- Linux运维课程 第一阶段 重难点摘要(一)网络基础
- 使用OSGI+MQ的方式解决集中化运维问题
- IT运维工程师们为什么选择使用Linux系统
- 运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(二)
- postgresql:时间戳转换为字符串
- postgresql 3