kingbase安装手册-Linux图形化界面安装

1 创建并添加kingbase组和用户修改相应权限

    [root@localhost ~]# groupadd kingbase 

    [root@localhost ~]# useradd kingbase -g kingbase -m

    [root@localhost ~]# passwd kingbase 

    [root@localhost home]# chmod -R 755 kingbase

    [root@localhost home]# chown -R kingbase:kingbase kingbase

2 配置kingbase用户环境变量 

    [kingbase@test ~]$ 

    vi .bash_profile 

   export                                                                                                                                     LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/kingbase/KingbaseES/lib:/home/kingbase/KingbaseES/bin:/home/kingbase/KingbaseES /unixodbc/lib

3 将安装文件和license拷贝到root用户下 

    [root@localhost ~]# ls

    anaconda-ks.cfg  install.log.syslog Desktop          

    kdb-7.1.2.0363-release-Linux-x86_64-installer-build0032.zip install.log     

     license_ee_7.1.2_企业版180L64.dat 

    [root@localhost kingbase]# unzip  kdb-7.1.2.0363-release-Linux-x86_64-installer-build0032.zip 

    [root@localhost kingbase]# su - kingbase

    [kingbase@localhost ~]$ cd /home/kingbase/ 

    [kingbase@localhost ~]$ ls 

    kdb-7.1.2.0363-release-Linux-x86_64-installer-build0032.zip  

    setup license_ee_7.1.2_企业版180L64.dat                           

     setup.sh 

4 创建安装目录

    [kingbase@localhost ~]$ mkdir /home/kingbase/KingbaseES

5 安装

    [root@localhost ~]# xhost + 

    access control disabled, clients can connect from any host 

    [root@localhost ~]# xclock    出现小时中则正常 

    [kingbase@localhost ~]$ ./setup.sh Now launch installer... Preparing to install... Extracting the JRE from the installer     archive...   Extracting the JRE from the installer archive... Unpacking the JRE... Extracting the installation resources     from the installer archive... Configuring the installer for this system's environment...Launching installer.

kingbase安装手册-Linux图形化界面安装_第1张图片

kingbase安装手册-Linux图形化界面安装_第2张图片

kingbase安装手册-Linux图形化界面安装_第3张图片

kingbase安装手册-Linux图形化界面安装_第4张图片

kingbase安装手册-Linux图形化界面安装_第5张图片


注:这里选择手动初始化数据库

kingbase安装手册-Linux图形化界面安装_第6张图片

切换到root用户执行Root.sh(Linux特有步骤) 

    [kingbase@localhost ~]$ su 口令:

    [root@localhost kingbaseES]# cd /home/kingbase/kingbaseES/Install/ 

    [root@localhost Install]# ls Root.sh  servicemgmt.sh  startup-desktop

    [root@localhost Install]# ./Root.sh Installing ODBC driver... ODBC Driver is installed successfully!

    Installing krms7d... krms7d is installed successfully!
    krms7d is starting... starting krms[确定] 成功启动krms服务。 krms7d start successfully!
    Installing kingbase7d... kingbase7d is installed successfully!
    Installing jobmgmt7d... jobmgmt7d is installed successfully!
    Installing kdbws7d... kdbws7d is installed successfully!
    kdbws7d is starting... kdbws7d is starting[确定] kdbws7d start successfully!
  Starting to initialize database by kingbase ... Starting System Initialization failed or error(s) occurred while     initializing database. You can see /home/kingbase/kingbaseES/Install/root.log for details. 

    Complete.

kingbase安装手册-Linux图形化界面安装_第7张图片

kingbase安装手册-Linux图形化界面安装_第8张图片

kingbase安装手册-Linux图形化界面安装_第9张图片

kingbase安装手册-Linux图形化界面安装_第10张图片

kingbase安装手册-Linux图形化界面安装_第11张图片

kingbase安装手册-Linux图形化界面安装_第12张图片

kingbase安装手册-Linux图形化界面安装_第13张图片

kingbase安装手册-Linux图形化界面安装_第14张图片

kingbase安装手册-Linux图形化界面安装_第15张图片

kingbase安装手册-Linux图形化界面安装_第16张图片

在Root.sh 中执行了如下操作:

检查下4个进程的启动情况

 [kingbase@localhost ~]$ /etc/init.d/krms7d status krms of kingbase: running[确定] 

[kingbase@localhost ~]$ /etc/init.d/kingbase7d status kingbase kingbasees_instance1 of kingbase: running[确定] [kingbase@localhost ~]$ /etc/init.d/jobmgmt7d status job_manager kingbasees_instance1 of kingbase: not running[警告] 

[kingbase@localhost ~]$ /etc/init.d/kdbws7d status kdbws7d (pid 10497) is running......[确定] 查看数据库状态 [root@localhost ~]# /etc/init.d/kingbase7d status kingbase kingbasees_instance1 of kingbase: running         [  OK  ] 如果没启动则手动启动:

 [root@localhost ~]# /etc/init.d/kingbase7d start

登录数据库 [kingbase@localhost ~]$ isql -U SYSTEM -W beijing TEST     //-U表示用户-W表示密码  TEST为数据库名 欢迎使用 isql 7.1.2.0363 release 64 bit, Kingbase 交互式终端.
类型:  \h SQL帮助命令       \? isql帮助命令       \g 将之前的SQL语句发往服务器执行       \q 退出
TEST=# 
  

你可能感兴趣的:(运维)