GBase 8c安装准备

本文档详细介绍了在Linux环境下安装GBase 8c前的准备工作,包括创建gbase用户并配置sudoer权限,关闭防火墙和SELINUX,以及设置NTP服务确保时间同步。此外,还指导了如何实现gbase用户在各节点间的免密登录。
摘要由CSDN通过智能技术生成

在启动安装过程前,必须确保用户有足够的权限来执行安装。在如下的安装和准备过程中,需要将gbase用户加入至sudoer。

以下操作,如无特殊说明,在所有节点均需执行。

创建用户和配置sudoer

所有节点均创建gbase组和用户:

[root@localhost ~]# groupadd gbase

[root@localhost ~]# useradd -m -d /home/gbase gbase -g gbase

[root@localhost ~]# passwd gbase

返回并设置密码,请牢记密码。

添加gbase至sudoer:

[root@localhost ~]# visudo

在打开的文档中如下位置增加gbase用户及权限:

## Allow root to run any commands anywhere

root    ALL=(ALL)       ALL

gbase   ALL=(ALL)       NOPASSWD:ALL

配置sudoer后,数据库安装配置操作无需root权限。

​​​​​​​环境设置

防火墙关闭操作:需要将GBase 8c分布式数据库节点间访问端口打通才可以保证读写请求、数据等信息的正常传输。在普通业务场景中,数据库节点间及其与业务服务之间的网络通信都是在安全域内完成数据交互,如果没有特殊的安全要求,建议将节点的防火墙进行关闭操作。否则需要按照“集群规划”中的“端口号”信息配置防火墙白名单。

[gbase@localhost ~]$ sudo systemctl stop firewalld.service

禁止防火墙开机自启动:

[gbase@localhost ~]$ sudo systemctl disable firewalld.service

系统返回:

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

即为操作成功。

关闭selinux:

[gbase@localhost ~]$ sudo vim /etc/selinux/config

设置SELINUX=disabled,保存退出:

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值