• GBase 8a修改端口


    GBase 8a集群节点的端口修改方法:
    Gcluster端口5258可以更改,在集群的所有节点上进行如下操作:
    1、使用dbauser用户修改$GCLUSTER_BASE/config/gbase_8a_gcluster.cnf文件中相关内容,具体修改参数如下:

    [client]

    port=5258

    socket=/tmp/gcluster_5258.sock

    [gbased]

    socket=/tmp/gcluster_5258.sock

    port=5258

    2、需要将5258修改为新的端口号,具体如下:

    su - gbase

    $ vi $GCLUSTER_BASE /config/gbase_8a_gcluster.cnf

    [client]

    port=5259

    socket=/tmp/gcluster_5259.sock

    [gbased]

    socket=/tmp/gcluster_5259.sock

    port=5259

    3、各个节点上的配置文件修改后,重新启动gcware服务。

    su - gbase

    $ su - root

    密码:

    gcluster_service gcware restart

    Signaling GCMETARECOVER (gcmetarecover) to terminate: [ OK ]

    Waiting for gcmetarecover services to unload:[ OK ]

    Signaling GCDATARECOVER (gcdatarecover) to terminate: [ OK ]

    Waiting for gcdatarecover services to unload:[ OK ]

    Signaling GCSYNC (gc_sync_server) to terminate: [ OK ]

    Waiting for gc_sync_server services to unload:[ OK ]

    Signaling GCLUSTERD to terminate: [ OK ]

    Waiting for gclusterd services to unload:…[ OK ]

    Signaling GBASED to terminate: [ OK ]

    Waiting for gbased services to unload:.[ OK ]

    Signaling GCWARE (gcware) to terminate: [ OK ]

    Waiting for gcware services to unload:[ OK ]

    Starting GCWARE (gcwexec): [ OK ]

    Starting GBASED : [ OK ]

    Starting GCLUSTERD : [ OK ]

    Starting GCSYNC : [ OK ]

    Starting GCMETARECOVER : [ OK ]

    Starting GCDATARECOVER : [ OK ]

    4、使用root用户,验证新端口设置成功。

    $ su - root

    密码:

    lsof -i:5259

    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

    gclusterd 4780 gbase 14u IPv4 23640 0t0 TCP *:5259 (LISTEN)

    Gnode端口5050可以更改 ,在集群的所有节点上进行如下操作:
    1、 使用dbauser用户修改$GCLUSTER_BASE/config/gbase_8a_gcluster.cnf文件中相关内容,具体修改的参数如下:

    [gbased]

    gcluster_gnode_port = 5050

    2、下面需要将5050修改为新的端口号,具体如下;

    su - gbase

    $ vi $GCLUSTER_BASE /config/gbase_8a_gcluster.cnf

    [gbased]

    gcluster_gnode_port = 5051

    3、使用gbase用户修改$GCLUSTER_BASE/config/gbase_8a_gbase.cnf文件中相关内容,具体修改的参数如下:

    [client]

    port=5050

    socket=/tmp/gbase_8a_5050.sock

    [gbased]

    socket=/tmp/gbase_8a_5050.sock

    port=5050

    4、下面需要将5050修改为新的端口号,具体如下;

    su - gbase

    $ vi /opt/gnode/config/gbase_8a_gbase.cnf

    [client]

    port=5051

    socket=/tmp/gbase_8a_5051.sock

    [gbased]

    socket=/tmp/gbase_8a_5051.sock

    port=5051

    5、 各个节点上的配置文件修改后,重新启动gcware服务。

    $ su - root

    密码:

    gcluster_service gcware restart

    Signaling GCMETARECOVER (gcmetarecover) to terminate: [ OK ]

    Waiting for gcmetarecover services to unload:[ OK ]

    Signaling GCDATARECOVER (gcdatarecover) to terminate: [ OK ]

    Waiting for gcdatarecover services to unload:[ OK ]

    Signaling GCSYNC (gc_sync_server) to terminate: [ OK ]

    Waiting for gc_sync_server services to unload:[ OK ]

    Signaling GCLUSTERD to terminate: [ OK ]

    Waiting for gclusterd services to unload:…[ OK ]

    Signaling GBASED to terminate: [ OK ]

    Waiting for gbased services to unload:.[ OK ]

    Signaling GCWARE (gcware) to terminate: [ OK ]

    Waiting for gcware services to unload:[ OK ]

    Starting GCWARE (gcwexec): [ OK ]

    Starting GBASED : [ OK ]

    Starting GCLUSTERD : [ OK ]

    Starting GCSYNC : [ OK ]

    Starting GCMETARECOVER : [ OK ]

    Starting GCDATARECOVER : [ OK ]

    6、使用root用户,验证新端口设置成功。

    $ su - root

    密码:

    lsof -i:5051

    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

    gbased 3452 gbase 5u IPv4 17730 0t0 TCP *:ita-agent
    (LISTEN)

    syncserver端口5288可以更改,在集群的所有节点上进行如下操作:

    1.   使用gbase用户在/opt/gnode/config下修改synctool.conf文件
      
      • 1
    2.   在synctool.conf增加如下内容:
      
      • 1

    su - gbase

    $ cd /opt/gnode/config/

    $ vi synctool.conf

    SERVER_PORT=5288

    LOG_LEVEL=3

    BLOCK_SIZE=512

    说明:

    • SERVER_PORT是端口号,默认5288,在此填写指定的端口;
    • LOG_LEVEL 是log级别,取值0,1,2,3,4分别代表ERROR,WARNING,INTERFACE,INFO,DEBUG;
    • 同步工具进行网络传输的数据块大小上限;

    3、修改完后,在各个节点机器中,使用root用户,重新启动gcware服务生效。

    $ su - root

    密码:

    gcluster_service gcware restart

    Signaling GCMETARECOVER (gcmetarecover) to terminate: [ OK ]

    Waiting for gcmetarecover services to unload:[ OK ]

    Signaling GCDATARECOVER (gcdatarecover) to terminate: [ OK ]

    Waiting for gcdatarecover services to unload:[ OK ]

    Signaling GCSYNC (gc_sync_server) to terminate: [ OK ]

    Waiting for gc_sync_server services to unload:[ OK ]

    Signaling GCLUSTERD to terminate: [ OK ]

    Waiting for gclusterd services to unload:…[ OK ]

    Signaling GBASED to terminate: [ OK ]

    Waiting for gbased services to unload:.[ OK ]

    Signaling GCWARE (gcware) to terminate: [ OK ]

    Waiting for gcware services to unload:[ OK ]

    Starting GCWARE (gcwexec): [ OK ]

    Starting GBASED : [ OK ]

    Starting GCLUSTERD : [ OK ]

    Starting GCSYNC : [ OK ]

    Starting GCMETARECOVER : [ OK ]

    Starting GCDATARECOVER : [ OK ]

    4、使用root用户,验证新端口是否设置成功。

    lsof -i:5287

    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

    gc_sync_s 3876 gbase 4u IPv4 20103 0t0 TCP *:5287 (LISTEN)

  • 相关阅读:
    C语言-结构体
    ansible Replace 模块
    Hikari连接池2--获取和归还连接
    如何区分人工智能生成的图像与真实照片(下)
    DDD实战心得
    网络热传App鉴定 |「得物」疑私删用户视频?从技术角度还原事件始末
    cocos小游戏实战-04-碰撞检测与NPC渲染
    PD仿真算法中变形梯度矩阵的极分解
    SLAM从入门到精通(amcl定位使用)
    C++-Cmake指令:file【文件操作命令】【比如:file GLOB命令主要用于匹配规则在指定的目录内匹配到所需要的文件】
  • 原文地址:https://blog.csdn.net/weixin_42423599/article/details/126142013