云计算百科
云计算领域专业知识百科平台

openGauss系列 --启动和停止服务器

https://docs.opengauss.org/zh/docs/6.0.0/docs/DatabaseOMGuide/%E5%90%AF%E5%81%9CopenGauss.html

启动服务器

 

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

 

使用以下命令启动openGauss。

 

gs_om -t start

 

 

[omm@lab6 ~]$ gs_om -t start

 

Starting cluster.

=========================================

[SUCCESS] lab6

2024-12-31 17:29:36.253 6773b980.1 [unknown] 140153221437888 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets

2024-12-31 17:29:36.253 6773b980.1 [unknown] 140153221437888 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets

2024-12-31 17:29:36.263 6773b980.1 [unknown] 140153221437888 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes) or shared memory (4482 Mbytes) is larger.

=========================================

Successfully started.

[omm@lab6 ~]$

停止服务器

 

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

 

使用以下命令停止openGauss。

 

gs_om -t stop

 

 

[omm@lab6 ~]$ gs_om -t stop

 

Stopping cluster.

=========================================

Successfully stopped cluster.

=========================================

End stop cluster.

[omm@lab6 ~]$

 

重启数据库

[omm@lab6 ~]$ gs_om -t restart

 

Stopping cluster.

=========================================

Successfully stopped cluster.

=========================================

End stop cluster.

 

Starting cluster.

=========================================

[SUCCESS] lab6

2025-01-10 20:34:22.764 678113ce.1 [unknown] 139978692413888 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets

2025-01-10 20:34:22.764 678113ce.1 [unknown] 139978692413888 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets

2025-01-10 20:34:22.774 678113ce.1 [unknown] 139978692413888 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes) or shared memory (4482 Mbytes) is larger.

=========================================

Successfully started.

[omm@lab6 ~]$

 

 

赞(0)
未经允许不得转载:网硕互联帮助中心 » openGauss系列 --启动和停止服务器
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!