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 postgresql.service
停止数据库:systemctl stop postgresql.service
重启数据库:systemctl restart postgresql.service
查看数据库运行状态:systemctl status postgresql.service
端口检查:netstat -ntpl|grep 5432
2.2 命令行方式
启动数据库:pg_ctl start -D $PGDATA
停止数据库:pg_ctl stop -D $PGDATA
重启数据库:pg_ctl restart -D $PGDATA
查看数据库运行状态:pg_ctl status -D $PGDATA
端口检查:netstat -ntpl|grep 5432
PostgreSQL 启动、停止数据库
1 PG数据库pg_auto_failover高可用模式下启停1.1 系统服务方式启动数据库:systemctl start postgresql.service停止数据库:systemctl...
点击下载文档
本文2024-09-23 01:13:37发表“云苍穹知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-cangqiong-144584.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
- 组织人员同步(星空旗舰-飞书)操作手册V1.0.docx
- 金蝶云·苍穹-数据表模型设计器整体介绍_20241017.pdf
- 金蝶云·苍穹新手入门实战课程配套课件 -5第五章.zip
- 金蝶云·苍穹新手入门实战课程配套课件 -1第一章.zip
- 金蝶云·苍穹-平台引领,Cosmic让智能无处不在.pdf
- KIS云·旗舰版7.0 生产任务管理解决方案(2024.08.01).pptx
- 金蝶云·苍穹新手入门实战课程配套课件 -4第四章.zip
- 金蝶云·苍穹新手入门实战课程配套课件 -7第七章.zip
- 益企成长讲堂-构建透明化生产车间的新篇章.pptx
- 金蝶KIS云旗舰版移动系列整体配置和应用方案介绍(20240815直播).pptx
热门文章