PostgreSQL 启动、停止数据库

1 PG数据库pg_auto_failover高可用模式下启停
1.1 系统服务方式
启动数据库:systemctl start postgresql.service
停止数据库:systemctl stop postgresql.service
重启数据库:systemctl restart postgresql.service
查看数据库运行状态:systemctl status postgresql.service
端口检查:netstat -ntpl|grep 5432/5433
注意事项:5432是主从节点端口号,5433是monitor节点端口号。

1.2 命令行方式
启动数据库:nohup pg_autoctl run &
停止数据库:pg_autoctl stop
查看数据库运行状态:pg_autoctl show state
端口检查:netstat -ntpl|grep 5432/5433
注意事项:5432是主从节点端口号,5433是monitor节点端口号。

2 PG数据库单机模式下启停
2.1 系统服务方式
启动数据库:systemctl start postgresq
PostgreSQL 启动、停止数据库
1 PG数据库pg_auto_failover高可用模式下启停1.1 系统服务方式启动数据库:systemctl start postgresql.service停止数据库:systemctl...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇



