GBase 8a集群启停工具

工具介绍

工具名称:gcluster_services
工具存放路径:$GCLUSTER_BASE/server/bin
功能:用于一次性启停集群所有相关服务。

  • gclusterd
  • gbased
  • syncserver
  • gcrecover
  • gcmonit
  • gcware

命令格式:

gcluster_services

gcluster_services help

参数说明如下:
force:用于服务无法停止时,内部用 kill -9 即 kill -KILL 的方式强制停止服务;
进程。因此–force 选项仅当无法停止服务时方可使用,且仅可用于 stop 和 restart操作。

工具使用

  • 开启所有服务:

$ gcluster_services all start
Starting gcware : [ OK ]
Starting gcluster : [ OK ]
Starting gcrecover : [ OK ]
Starting gbase : [ OK ]
Starting syncserver : [ OK ]
Starting GCMonit success : [ OK ]

  • 停止所有服务:

$ gcluster_services all stop
Stopping GCMonit success : [ OK ]
Stopping gcrecover: [ OK ]
Stopping gcluster : [ OK ]
Stopping gcware : [ OK ]
Stopping gbase : [ OK ]
Stopping syncserver : [ OK ]

  • 重新开启所有服务:

$ gcluster_services all restart
Stopping GCMonit success : [ OK ]
Stopping gcrecover: [ OK ]
Stopping gcluster : [ OK ]
Stopping gcware : [ OK ]
Stopping gbase : [ OK ]
Stopping syncserver : [ OK ]
Starting gcware : [ OK ]
Starting gcluster : [ OK ]
Starting gcrecover : [ OK ]
Starting gbase : [ OK ]
Starting syncserver : [ OK ]
Starting GCMonit success : [ OK ]

  • 查看当前所有服务执行状态信息:

$ gcluster_services all info
gcware is running gcluster is running
gcrecover is running
gbase is running
syncserver is running
GCMonit is running

你可能感兴趣的:(服务器,linux,大数据,数据库,运维)