openGauss学习笔记-131 openGauss 数据库运维-启停openGauss

文章目录

    • [openGauss学习笔记-131 openGauss 数据库运维-启停openGauss](#openGauss学习笔记-131 openGauss 数据库运维-启停openGauss)
      • [131.1 启动openGauss](#131.1 启动openGauss)
      • [131.2 停止openGauss](#131.2 停止openGauss)
      • [131.3 示例](#131.3 示例)
        • [131.3.1 启动openGauss](#131.3.1 启动openGauss)
        • [131.3.2 停止openGauss](#131.3.2 停止openGauss)
      • [131.4 错误排查](#131.4 错误排查)

openGauss学习笔记-131 openGauss 数据库运维-启停openGauss

131.1 启动openGauss

  1. 以操作系统用户omm登录数据库主节点。

  2. 使用以下命令启动openGauss。

    sql 复制代码
    gs_om -t start

    说明: 双机启动必须以双机模式启动,若中间过程以单机模式启动,则必须修复才能恢复双机关系,用gs_ctl build进行修复,gs_ctl的使用方法请参见《工具与命令参考》中"系统内部命令 > gs_ctl"章节。

131.2 停止openGauss

  1. 以操作系统用户omm登录数据库主节点。

  2. 使用以下命令停止openGauss。

    sql 复制代码
    gs_om -t stop

    说明: 启停节点及AZ的操作请参见《工具与命令参考》中"服务端工具 > gs_om"章节。

131.3 示例

131.3.1 启动openGauss
sql 复制代码
gs_om -t start
Starting cluster.
=========================================
=========================================
Successfully started.
131.3.2 停止openGauss
sql 复制代码
gs_om -t stop
Stopping cluster.
=========================================
Successfully stopped cluster.
=========================================
End stop cluster.

131.4 错误排查

如果启动openGauss或者停止openGauss服务失败,请根据日志文件中的日志信息排查错误,参见日志参考

如果是超时导致启动失败,可以执行如下命令,设置启动超时时间,默认超时时间为300s。

sql 复制代码
gs_om -t start --time-out=300

👍 点赞,你的认可是我创作的动力!

⭐️ 收藏,你的青睐是我努力的方向!

✏️ 评论,你的意见是我进步的财富!

相关推荐
倔强的石头_2 天前
《Kingbase护城河》——数据库存储空间全景探测与精细化瘦身实战
数据库
冬奇Lab2 天前
每日一个开源项目(第134篇):Zvec - 阿里开源的嵌入式向量数据库,向量搜索界的 SQLite
数据库·人工智能·llm
ClouGence3 天前
Oracle CDC 架构优化:从主库直连到 DataGuard 备库同步
数据库·后端·oracle
无响应de神3 天前
三、用户与权限管理
数据库·mysql
麦聪聊数据3 天前
数据服务化时代:企业数据能力输出的核心路径
数据库
shushangyun_3 天前
2026年快消品B2B系统推荐:支持终端门店订货、促销政策自动化的工具?
java·运维·网络·数据库·人工智能·spring·自动化
DARLING Zero two♡3 天前
【MySQL数据库】数据类型与表约束
数据库·mysql
曹牧3 天前
Oracle EXPLAIN PLAN
数据库·oracle
BD_Marathon3 天前
SQL学习指南——视图
数据库·sql
活宝小娜3 天前
mysql详细安装教程
数据库·mysql·adb