凝思系统搭建db_ha高可用--数据库安全版4.5.8

文章详细介绍了在Linx6.0.80操作系统上安装凝思虚拟机的步骤,包括设置root账户密码、配置桥接网络和DNS。接着,文章讲解了如何安装数据库HighGoDB4.5.8,以及初始化数据库和调整相关配置文件如postgres.conf和pg_hba.conf的过程。
摘要由CSDN通过智能技术生成

环境:
操作系统Linx-6.0.80-20191126-amd64-DVD.iso
数据库安全版4.5.8

1.安装凝思操虚拟机

  • 凝思系统安装完成后,root账户密码一般为系统默认的R0ck9

  • 配置桥接网络
    virtualbox针对该虚拟机设置桥接类型
    更改网络设置
    /etc/network/interfaces:

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    source /etc/network/interfaces.d/*
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    allow-hotplug eth0
    iface eth0 inet static
            address 192.168.31.138
            netmask 255.255.255.0
            network 192.168.31.0	
            broadcast 192.168.31.255
            gateway 192.168.31.254
    
    

    重启网络服务
    /etc/init.d/networking restart

配置DNS
vim /etc/resolv.conf
nameserver 219.147.1.66

  • 通过ssh连接需要更改如下配置:

    在文件/etc/ssh/sshd_config最后一行,添加如下内容:

    PermitRootLogin yes
    
  1. 安装数据库
  • 所有节点安装数据库
    dpkg -i hgdb-see_4.5.8-db43858_amd64.deb

  • 主节点初始化数据库
    /opt/highgo/hgdb-see-4.5.8/bin/initdb -D ~/data -e sm4 -c “echo 12345678” --data-checksums
    法规及
    主节点更改postgres.conf和pg_hba.conf

/opt/highgo/hgdb-see-4.5.8/bin/hg_sslkeygen.sh /root/data

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值