mkdir -p /opt/GBase/data/dn1_1
mkdir -p /opt/GBase/gbase_package
mkdir -p /opt/GBase/gbase_db
mkdir -p /mnt/sdb/data
groupadd gbase
useradd -m -d /home/gbase gbase -g gbase
passwd gbase
chown -R gbase:gbase /mnt/sdb
chown -R gbase:gbase /opt/GBase
visudo
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
gbase ALL=(ALL) ALL
su gbase
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
ssh-copy-id [email protected]
#sudo sed -i 's/^\\s*Banner/#&/' /etc/ssh/sshd_config;sudo systemctl restart sshd.service
#if [ ! -f '~/.ssh/config' ]; then echo '' > ~/.ssh/config && chmod 644 ~/.ssh/config; fi
tar -zxvf GBase8sV8.8_S3.0.0B69_centos7.8_x86_64.tar.gz -C /opt/GBase/gbase_package
OM安装
cd /opt/GBase/gbase_package
tar -zxvf GBase8sV8.8_S3.0.0B69_CentOS_x86_64_om.tar.gz -C /opt/GBase/gbase_package
chown -R gbase:gbase /opt/GBase
chmod -R 700 /opt/GBase
su gbase
cd /opt/GBase/gbase_package
vi gbase.yml
gha_server: - gha_server1: host: 10.110.137.41 port: 20001 dcs: - host: 10.110.137.41 port: 2379 datanode: - dn1: - dn1_1: host: 10.110.137.41 agent_host: 10.110.137.41 role: primary port: 15432 agent_port: 8006 work_dir: /opt/GBase/data/dn1_1 env: # cluster_type allowed values: multiple-nodes, single-inst, default is multiple-nodes cluster_type: single-inst pkg_path: /opt/GBase/gbase_package prefix: /opt/GBase/gbase_db version: V8.8_S3.0.0B69 user: gbase port: 22 third_ssh: false
安装数据库
./gha_ctl install -p /opt/GBase/gbase_package/ -c gbase
启动数据库服务
./gha_ctl start all -l http://10.110.137.37:2379
停止数据库服务
./gha_ctl stop all -l http://10.110.137.37:2379
标签:opt,10.110,package,gbase,ssh,安装,GBase From: https://www.cnblogs.com/wag1027/p/17548281.html