openGauss安装——单节点服务器安装

单节点服务器安装

  1. 创建用户组dbgroup。

    ""groupadd dbgroup
    
  2. 创建用户组dbgroup下的普通用户omm,并设置普通用户omm的密码,密码建议设置为omm@123。

    ""useradd -g dbgroup omm
    passwd omm
    
  3. 使用omm用户登录到openGauss包安装的主机,解压openGauss压缩包到安装目录(假定安装目录为/opt/software/openGauss,请用实际值替换)。

    ""tar -jxf openGauss-x.x.x-操作系统-64bit.tar.bz2 -C /opt/software/openGauss
    
  4. 假定解压包的路径为/opt/software/openGauss,进入解压后目录下的simpleInstall。

    ""cd /opt/software/openGauss/simpleInstall
    
  5. 执行install.sh脚本安装openGauss。

    ""sh install.sh  -w xxxx 
    

    上述命令中,-w是指初始化数据库密码(gs_initdb指定),安全需要必须设置。

  6. 安装执行完成后,使用ps和gs_ctl查看进程是否正常。

    ""ps ux | grep gaussdb
    gs_ctl query -D /opt/software/openGauss/data/single_node
    

    执行ps命令,显示类似如下信息:

    ""omm      24209 11.9  1.0 1852000 355816 pts/0  Sl   01:54   0:33 /opt/software/openGauss/bin/gaussdb -D /opt/software/openGauss/single_node
    omm      20377  0.0  0.0 119880  1216 pts/0    S+   15:37   0:00 grep --color=auto gaussdb
    

    执行gs_ctl命令,显示类似如下信息:

    ""gs_ctl query ,datadir is /opt/software/openGauss/data/single_node
    HA state:
        local_role                     : Normal
        static_connections             : 0
        db_state                       : Normal
        detail_information             : Normal
    
    Senders info:
        No information
    
     Receiver info:
    No information
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值