GBASE南大通用技术分享:构建最优数据平台,GBase 8s数据库安装准备(三)

3.安装准备

3.1创建 gbasedbt 组和用户

在启动GBase 8s的安装过程之前,需要先准备好系统并具有足够的权限来执行安装。为了完成与安装相关的任务,必须使用root用户登录,并确保服务器操作系统上存在gbasedbt组和gbasedbt用户。登录系统后执行以下命令创建 gbasedbt 组和 gbasedbt 用户:

diff 复制代码
--创建gbasedbt 组和 gbasedbt 用户
csharp 复制代码
[root@vip ~]# groupadd gbasedbt
[root@vip ~]# useradd -g gbasedbt gbasedbt
sql 复制代码
--为 gbasedbt 用户设置密码,密码为 gbasedbt:
[root@vip ~]# passwd gbasedbt
Changing password for user gbasedbt.
New password: 
BAD PASSWORD: The password contains the user name in some form
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@vip ~]# 

3.2创建 GBase 8s 数据库安装目录

GBase 8s 数据库缺省的安装目录为 /opt/GBASE/gbase,并且此文件夹必须为空。执行以下命令创建GBase 8s安装目录并将目录属主改为gbasedbt:

csharp 复制代码
[root@vip ~]# mkdir -p /opt/GBASE/gbase
[root@vip ~]# chown gbasedbt:gbasedbt /opt/GBASE/gbase
[root@vip ~]# 
csharp 复制代码
[root@vip ~]# ll /opt/GBASE/
total 0
drwxr-xr-x. 2 gbasedbt gbasedbt 6 Apr 24 11:13 gbase
[root@vip ~]# 

3.3上传并解压安装包

在本文中,以GBase8s_ExpressEdition-202108.tar为例进行安装说明。将软件包上传到/opt/soft目录下并解压。

csharp 复制代码
[root@vip ~]# cd /opt/soft
[root@vip soft]# ll
total 309272
-rw-r--r--. 1 root root 316692480 Apr 24 13:36 GBase8s_ExpressEdition-202108.tar
[root@vip soft]# tar -vxf GBase8s_ExpressEdition-202108.tar 
doc/
doc/ids_machine_notes_12.10.txt
doc/ids_unix_relnotes_12.10.html
ids.properties
ids_install
onsecurity
.gbase.properties
[root@vip soft]# ll
total 618520
drwxr-xr-x. 2 vip  vip         77 Mar 23  2021 doc
-rw-r--r--. 1 root root 316692480 Apr 24 13:36 GBase8s_ExpressEdition-202108.tar
-rwxr-xr-x. 1 vip  vip  316579352 Mar 23  2021 ids_install
-rw-r--r--. 1 vip  vip       1864 Mar 23  2021 ids.properties
-rwxr-xr-x. 1 vip  vip      82738 Mar 23  2021 onsecurity
[root@vip soft]# 

至此,安装环境已准备就绪。接下来,我将演示两种不同的GBase 8s安装方式:命令行典型安装和图形化定制安装。我希望通过这次演示,让各位读者熟悉这两种安装方式,并充分利用GBase 8s所提供的优势。请耐心阅读,谢谢。

相关推荐
AIgorithmGEEK20 小时前
MySQL 索引全解(下):建、查、删实战与知识速查表
数据库·mysql·b+树·索引
唠点键盘之外的1 天前
26 向量数据库实战:从 0 搭一条能用的检索链路(pgvector + Spring AI)
数据库·人工智能·spring
云和恩墨1 天前
数据库监控简史:监控不止于告警——从图表大爆发到健康管理闭环
数据库
ly76891 天前
MongoDB 事务开销实测:快照隔离下的写冲突、重试与分片事务边界
数据库·mongodb·事务·分片集群·快照隔离·写冲突
豆角焖肉1 天前
Spring AOP 自定义注解实现系统操作日志
数据库·自定义注解·springaop·操作日志·aop 切面
金伟API10241 天前
不会写复杂SQL怎么办?
数据库·sql
执笔为剑1 天前
2.1.2-1、V8R3迁移到V8R6-Oracle兼容特性
数据库
geovindu1 天前
sql:Search-Optimized SQL Queries using mysql 9.0
android·数据库·sql·mysql·数据库开发·数据库架构
for_ever_love__1 天前
MySQL SELECT 与 WHERE 优化实战:可搜索条件、联合索引与执行计划
数据库·mysql·oracle·select·where·条件优化·查询优化技巧
2501_931803751 天前
MySQL 锁机制详解
数据库·mysql