首页 > 其他分享 >GBase 8a 单机版安装教程

GBase 8a 单机版安装教程

时间:2024-01-31 14:13:54浏览次数:23  
标签:单机版 05 8a gbase GBaseInstall gbase8 GBase localhost

GBase 8a单机免费版安装。本文采用官方免费版本GBase8a-NoLicense-Free-8.6.2_build43-R7-redhat7.3-x86_64.tar.bz2为例,介绍单机版安装步骤。

安装包下载地址

https://pan.baidu.com/s/1HPVMoZWMpRrIsWvatswUGw

  • 如需提取码:[打开微信]->[扫描下方二维码]->[关注数据与人] 回复”gbase8a″ 获取提取码 

前提

请确认你的操作系统是redhat 7系列。

[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
[root@localhost ~]#

创建用户

我这里是gbase8用户。如果你已经有自己的用户,则无需创建了。

[root@localhost ~]# useradd  gbase8 -m
[root@localhost ~]# chown gbase8:gbase8 GBase8a-NoLicense-Free-8.6.2_build43-R7-redhat7.3-x86_64.tar.bz2

将安装包复制到你的用户主目录下面

比如我例子中的/home/gbase/gbase8下面。本例是我通过root上传,然后mv过去的。请根据自己的情况,将安装包放过去。

注意之后我们都是在自己的gbase8用户下操作

[root@localhost ~]# mv GBase8a-NoLicense-Free-8.6.2_build43-R7-redhat7.3-x86_64.tar.bz2  /home/gbase8/
[root@localhost ~]# su -  gbase8
[gbase8@localhost ~]$ ll
total 34804
-rw-r--r-- 1 gbase8 gbase8 35638083 Sep  4 05:50 GBase8a-NoLicense-Free-8.6.2_build43-R7-redhat7.3-x86_64.tar.bz2

解压缩安装包

[gbase8@localhost ~]$ tar -xvf GBase8a-NoLicense-Free-8.6.2_build43-R7-redhat7.3-x86_64.tar.bz2
GBaseInstall/
GBaseInstall/docs/
GBaseInstall/clear.sh
GBaseInstall/license.txt
GBaseInstall/Install_lin.sh
GBaseInstall/install_config/
GBaseInstall/install_config/.gbase.properties
此处省略一大堆解压缩信息

查看readme.txt

redame.txt里有常见的操作信息,包括安装,启动停止,登陆等,

[gbase8@localhost GBaseInstall]$ cat readme.txt
Guide:

1. To install
$ cd GBaseInstall
$ sh ./Install_lin.sh
$ source ~/.bashrc

2. To start&stop GBase
$ gbase.server start
$ gbase.server stop
$ gbase.server restart

3. To use GBase
$ gbase -uroot

4. To list all instance
$ cat $HOME/.gbase8a.properties_instance

5. To uninstall:
$ cd <installPath>
$ sh .server/bin/Uninstall_lin.sh

6. To Update
$ cd GBaseInstall
$ sh ./Install_lin.sh -U
$ source ~/.bash_profile
[gbase8@localhost GBaseInstall]$

安装

Install_lin.sh是安装脚本

其中所有的选项,我们都采用默认值即可,不需要修改。其中
安装目录默认是 /home/gbase8/GBase
默认的实例名是 gbase8a
默认端口是 5258

[gbase8@localhost GBaseInstall]$ ./Install_lin.sh

*********************************************************************************
Thank you for choosing GBase product!
省略许可内容
*********************************************************************************
Do you accept the above licence agreement (Yes/No, default=No) ?
yes

*********************************************************************************
                     Welcome to install GBase products
*********************************************************************************
Please input the GBase software installation directory (Default:/home/gbase8/GBase):


Installing all software packages ...

Software packages installation done.

*********************************************************************************
                  Welcome to create GBase database instance
*********************************************************************************
Please input the new database instance name (default: gbase8a):


Please input the port number for the new database instance (default:5258):

GBase is creating the New 'gbase8a' instance ...

hostkey: c9b28eccaed0efbfac9ceda2e992aeec
The host key file is genarate at GBASE_BASE/config/gbase_host.cnf.


Congratulations.  Your GBase installation is successful.

Please execute $source ~/.bashrc manually on the first run.

Please refer to the product's manuals and readme.txt to start using GBase product.

查看下我们安装后的目录

[gbase8@localhost GBaseInstall]$ cd /home/gbase8/GBase
[gbase8@localhost GBase]$ ll
total 8
drwxrwxr-x 2 gbase8 gbase8   56 Sep  4 05:54 config
drwxrwxr-x 2 gbase8 gbase8    6 Sep  4 05:54 docs
drwxrwxr-x 2 gbase8 gbase8  101 Sep  4 05:54 install_config
drwxrwxr-x 3 gbase8 gbase8   37 Sep  4 05:54 install_templet
-rw-r--r-- 1 gbase8 gbase8 3351 Sep  4 05:54 license.txt
drwxrwxr-x 3 gbase8 gbase8   21 Sep  4 05:54 log
drwxrwxr-x 2 gbase8 gbase8    6 Sep  4 05:54 misc
-rw-rw-r-- 1 gbase8 gbase8  446 Sep  4 05:54 readme.txt
drwxrwxr-x 7 gbase8 gbase8   72 Sep  4 05:54 server
drwxrwxr-x 4 gbase8 gbase8   49 Sep  4 05:54 tmpdata
drwxrwxr-x 3 gbase8 gbase8   21 Sep  4 05:54 userdata
[gbase8@localhost GBase]$

加载环境变量

环境变量在~/.bashr 里面,我们直接加载这个文件。

[gbase8@localhost GBaseInstall]$ source ~/.bashrc

看一下这个文件的内容,内部是加载/home/gbase8/.gbase_profile的。查看下.gbase_profile内容,都是环境变量相关的。

重要提示:数据库运行必须有响应的环境变量。

[gbase8@localhost GBaseInstall]$ cat ~/.bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
if [ -f "/home/gbase8/.gbase_profile" ]; then
. "/home/gbase8/.gbase_profile"
fi
[gbase8@localhost GBaseInstall]$ cat ~/.gbase_profile
export GBASE_BASE=/home/gbase8/GBase
export GBASE_HOME=/home/gbase8/GBase/server
export GBASE_SID=gbase8a
export PATH=$GBASE_HOME/bin:$PATH
export TCMALLOC_AGGRESSIVE_DECOMMIT=1
export LD_LIBRARY_PATH=$GBASE_HOME/lib/gbase/:$LD_LIBRARY_PATH
export TERMINFO=$GBASE_HOME/share/terminfo
[gbase8@localhost GBaseInstall]$

启动数据库服务


[gbase8@localhost GBaseInstall]$ gbase.server start
Starting GBase. SUCCESS!

登陆数据库并测试

[gbase8@localhost GBaseInstall]$ gbase

GBase client Free Edition 8.6.2.43-R7-free.110605. Copyright (c) 2004-2020, GBase.  All Rights Reserved.

gbase> 

总结

至此,GBase 8a单机免费版已经顺利完成了。

标签:单机版,05,8a,gbase,GBaseInstall,gbase8,GBase,localhost
From: https://www.cnblogs.com/shujuyr/p/17999124

相关文章

  • STC8G1K08A单片机数模转换
    STC8G1K08A单片机数模转换https://blog.csdn.net/weixin_58209766/article/details/124126864?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-2-124126864-blog-129878315.235^v43^pc_blog_bottom_relevance_base5&d......
  • MySQL迁移人大金仓kingbase
    前言:前段时间接到一个任务,说是数据库要由mysql改成人大金仓,项目代码也需要修改适配(另一个同事负责),而我则是负责数据库的迁移工作,期限是七天(2024-01-26已上线),在这之前我甚至都没听过人大金仓这个名词,而且也没有相关文档的交接更没有技术人员支撑,起初我还让项目负责人去跟集团的DBA......
  • 可扩展、CY8C4148AZAS595、CY8C4148AZAS568、CY8C4148AZAS558支持更低的成本HMI应用,BT
    一、PSoC™Automotive4100SMaxMCU 1、说明PSoC4100SMax采用CAPSENSE技术,拥有7x7mm²、10x10mm²和14x14mm²三种封装尺寸,支持工业控制、汽车人机交互(HMI)、智能家居自动化及大型家用电器,如机器人、电感式传感器、洗衣机、冰箱、空调、智能温控器、打印机等。P......
  • CF1338A Powered Addition
    思路问题等价于找到一个\(b\)数组,使得$b_i$+$a_i$$>=$$b_i{_-}{_1}$+$a_i{_-}{_1}$移项得$b_i$$>=$$b_i{_-}{_1}$+$a_i{_-}{_1}$-$a_i$我们要使得$b$数组最小化,即$b_i=max(0,b_i{_-}{_1}+a_i{_-}{_1}-a_i)$ac代码#include<bits/stdc++.h>usingnamespa......
  • 从python 单机版爬虫 scrapy 到 分布式scrapy-redis 爬虫用最简单的步骤创建实例
    scrapy是很强大的模块化爬虫框架,具有很高的灵活性,使用频率很高,使用该框架能大大提高开发效率,scrapy-redis是在scrapy框架开发了组件,替换队列部分,实现多台服务器并行运行爬虫,提高爬取速度。下面是用最简单的例子从建立普通scrapy爬虫,然后数据保存mysql,最后简单替换几行就能使用s......
  • K8S单机版部署
    安装etcd、kubernetesKubernetes中几乎所有的资源对象(Node、Pod、ReplicationController、Service等)都能通过kubectl工具执行增删改查操作并保存在etcd中持久化存储。因此Kubernetes和etcd密不可分。可在root权限下,输入如下指令安装etcd和kubernetesyuminstall-yetcdkuber......
  • flowable适配人大金仓Kingbase数据库
    背景因为国产化的需求,需要把现有项目的数据库改成人大金仓,适配某个项目的时候因为使用了没适配Kingbase的flowable,导致无法启动。原本使用的是Oracle数据库,kingbase兼容Oracle数据库,可以直接当成Oracle来使用。错误1:couldn'tdeductdatabasetypefromdatabaseproductnam......
  • 世微AP5125 外置MOS管5-100V 8A平均电流型LED降压恒流驱动器 SOT23-6
    产品描述  AP5125是一款外围电路简单的Buck型平均电流检测模式的LED恒流驱动器,适用于8-100V电压范围的非隔离式大功率恒流LED驱动领域。芯片采用固定频率140kHz的PWM工作模式,利用平均电流检测模式,因此具有优异的负载调整率特性,高精度的输出电流特性。AP5125芯......
  • DBeaver 连接 GBase 数据库
    DBeaver连接GBase数据库DBeaver连接GBase数据库说明这是我重新走一次流程记录的,所以图片中会有添加好的驱动包。我用的是适配MySQL和PostgreSQL的那个jar包,不过操作都是一样的,虽说jar包不一样,但DBeaver可以帮你找到驱动类,这点比较方便。还有其实可以通过......
  • 汉源高科120路128路电话光端机+1路百兆网 PCM语音电话光纤收发器光PCM128A-ETH
    128路电话光端机+1路百兆网络HY-128P1FL是汉源高科(北京)科技有限公司采用自主知识产权的大规模集成电路,应用时分复用技术,将以太网信号和电话信号混合编码后在一对光纤上传输。实现热线电话业务传输,传输通道为光传输通道。该机采用2U机架式设计,集成度高,体积小,功耗低,工作可靠,安装使用......