PG的启停

PG的启停是在操作系统层面进行。

1.PG启动:
pg@dmdb04-> pg_ctl start
waiting for server to start…2019-11-29 15:21:40.981 CST [74098] LOG: 00000: starting PostgreSQL 12beta2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit
2019-11-29 15:21:40.981 CST [74098] LOCATION: PostmasterMain, postmaster.c:998
2019-11-29 15:21:40.981 CST [74098] LOG: 00000: listening on IPv4 address “0.0.0.0”, port 1921
2019-11-29 15:21:40.981 CST [74098] LOCATION: StreamServerPort, pqcomm.c:593
2019-11-29 15:21:40.981 CST [74098] LOG: 00000: listening on Unix socket “./.s.PGSQL.1921”
2019-11-29 15:21:40.981 CST [74098] LOCATION: StreamServerPort, pqcomm.c:587
2019-11-29 15:21:41.003 CST [74098] LOG: 00000: redirecting log output to logging collector process
2019-11-29 15:21:41.003 CST [74098] HINT: Future log output will appear in directory “log”.
2019-11-29 15:21:41.003 CST [74098] LOCATION: SysLogger_Start, syslogger.c:675
done
server started

2.PG的关闭:
pg@dmdb04-> pg_ctl stop
waiting for server to shut down… done
server stopped

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值