Getting Started with Dameng Database: Installing and Uninstalling Dameng 8 (Linux)

Dameng database installation and uninstallation (Linux)


1. Prepare the linux operating system:
the operating system used by the author is the winning Kirin advanced server operating system software V7.0, and other commonly used linux operating systems can also be installed (such as CentOS7).

2. Plan installation users and installation paths

1), first use the root user to create a user group dmgroup

[root@localhost ~]# groupadd dmgroup

2), and then create user dmdba

[root@localhost ~]# useradd -g dinstall dmdba

3), Plan the installation directory, and set the permissions of the directory to the dmdba user

[root@localhost /]# mkdir /dmteamo
[root@localhost /]# chown dmdba.dinstall -R /dmteamo

3. Configure environment variables,
switch the login user to dmdba, and then configure the environment variable file .bash_profile file in the /home/dmdba directory

[root@localhost /]# su dmdba
[dmdba@localhost /]# cd /home/dmdba
[dmdba@localhost dmdba]# vi .bash_profile

在打开的文件末尾加入下面内容
export DM_HOME=/dmteamo
export PATH=$DM_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin

保存文件后,执行下面命令是环境变量生效
[dmdba@localhost dmdba]# source  .bash_profile

4. Prepare the installation file (the author takes the .iso file as an example)

首先使用root用户挂在iso文件
[root@localhost 桌面]# mount -o loop dm8_20201107_x86_rh6_64_ent_8.1.1.144.iso /mnt
[root@localhost 桌面]# cd /mnt
[root@localhost mnt]# ls
DM8 Install.pdf  DMInstall.bin
当看到DMInstall.bin文件,就说明安装文件已经成功挂载

5. Install the database

1. Use the GUI to install
First use the root user to share the desktop

[root@localhost mnt] xhost +

Switch to dmdba user

[root@localhost mnt]# su dmdba

Execute the installation command

[dmdba@localhost mnt]./DMInstall.bin

insert image description here
insert image description here
insert image description here
insert image description here
Select [Typical Installation] to install the server and client, select [Server Installation] to install only the server, select [Client Installation] to install only the client, and select [Custom Installation] to install it according to user needs
insert image description here

Enter the directory to be installed, click Next
insert image description here
and click Install
insert image description here
After the installation is complete, use the root user to execute the following commands as required
insert image description here

root@localhost /]# /dmteamo/script/root/root_installer.sh

So far, the database installation is complete

2. Use the command mode to install
Switch to the dmdba user, cd to the /mnt directory

[root@localhost 桌面]$ su -dmdba
[root@localhost 桌面]$ cd /mnt

Execute the following command

[dmdba@localhost mnt]$ ./DMInstall.bin -i

Then follow the prompts step by step to operate

请选择安装语言(C/c:中文 E/e:英文) [C/c]:

Unzip the installer...
Welcome to the Dameng database installer

是否输入Key文件路径? (Y/y:是 N/n:否) [Y/y]:n

是否设置时区? (Y/y:是 N/n:否) [Y/y]:n

Installation Type:
1 Typical Installation
2 Server
3 Client
4 Custom

请选择安装类型的数字序号 [1 典型安装]:1

Required space: 1034M

请选择安装目录 [/home/dmteamo/dmdbms]:/dmteamo

Available space: 10G

是否确认安装路径(/dmteamo)? (Y/y:是 N/n:否)  [Y/y]:y

Summary before installation
Installation location: /dmteamo
Required space: 1034M
Available space: 10G
Version information:
Effective date:
Installation type: Typical installation
Confirm installation? (Y/y: Yes N/n: No): y
2021-01- 13 11:36:56
[INFO] Install Dameng database...
2021-01-13 11:36:56
[INFO] Install basic module...
2021-01-13 11:36:59
[INFO] Install server module...
2021- 01-13 11:37:00
[INFO] Installing client module...
2021-01-13 11:37:01
[INFO] Installing driver module...
2021-01-13 11:37:01
[INFO] Installing manual module...
2021-01-13 11:37:02
[INFO] Installing service module...
2021-01-13 11:37:03
[INFO] Moving ant log files.
2021-01-13 11:37:03
[INFO] Dameng database installation completed.

请以root系统用户执行命令:
/dmteamo/script/root/root_installer.sh

Use the root user to execute commands according to the prompt

[dmteamo@localhost mnt]$exit
[root@localhost mnt]/dmteamo/script/root/root_installer.sh

So far, the database installation is successful!

6. Uninstall the database
Switch to the dmdba user, cd to the data installation directory, and execute the /uninstall.sh command

[root@localhost mnt]su dmdba
[dmdba@localhost mnt]cd /dmteamo
[dmdba@localhost dmteamo]$ ./uninstall.sh

Pop up the uninstall pop-up window, click the OK button,
insert image description here
then click the uninstall button
insert image description here
insert image description here
, and finally execute the following command as required

[root@localhost dmteamo]# /dmteamo/root_uninstaller.sh

Click the Finish button, and the database is successfully uninstalled!
insert image description here

Guess you like

Origin blog.csdn.net/teamo_m/article/details/112525375