Simple installation of Dameng database

1. Operating system users and groups

   为了减少对操作系统的影响,用户不应该以root用户来安装和运行达梦数据库。
   用户可以在安装之前为达梦数据库创建一个专用的系统用户(dmdba)和用户组(dinstall)。 

The following steps are only for reference. Please refer to the local system for specific steps and operations, and consult the system administrator for specific details.

  1. Create an installation user group:
    groupadd dinstall
  2. Create the installation user:
    useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
  3. Initialize user password:
    passwd dmdba

2. Install Dameng database under linux

1) Switch the user to dmdba and create the temporary directory used when installing the database:
su-dmdba
mkdir /home/dmdba/tmp
export DM_INSTALL_TMPDIR=/home/dmdba/tmp
2) To install the database, the command line is recommended:
cd /home/dmdba
./DMInstall.bin -i
3) Installation steps-input key file:
Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:y
Please Input the Path of the Key File [dm.key]:/db/dm.key
4) Installation steps-set the time zone (as prompted, set to the East 8 zone):
Whether to Set The TimeZone? (Y/y :Yes N/n:No) [Y/y]:y
Please Select the TimeZone [9]:21
5) Installation steps-select the installation type (Typical recommended):
Installation Type:
1 Typical
2 Server
3 Client
4 Custom
Please Input the number of the Installation Type [1 Typical]:1
6) Installation step-After selecting the installation type, it prompts the space required by the database software:
Require Space: 542M
7) Installation step-Enter the database software installation path:
Please Input the install path [/opt/dmdbms]:/ home/dmdba/dmdbms
8) Installation steps-prompt the remaining space of the installation path, and again prompt to confirm the installation path:
Available Space: 43185M
Please Confirm the install path? (Y/y:Yes N/n:No) [ Y/y]:y
9) Installation steps-confirm installation:
Pre-Installation Summary
Installation Location: /home/dmdba/dmdbms
Require Space: 542M
Available Space: 43185M
Version Information: Standard Edition
Expire Data: unlimited
Installation Type: Typical
Confirm to Install? (Y/y:Yes N/n:No) [Y/y]:y
10) One of the installation steps-installation is complete:
confirm the installation? (Y/y:Yes N/n:No): y
2020-02-15 22:23:49
[INFO] Install Dameng database...
2020-02-15 22:23:50
[INFO] Install the basic module...
2020-02-15 22:24:08
[INFO] Install the server module...
2020-02-15 22:24:10
[INFO] Install the client Module...
2020-02-15 22:24:25
[INFO] Install the driver module...
2020-02-15 22:24:29
[INFO] Install the manual module...
2020-02-15 22:24:31
[INFO] Installation Service module...
2020-02-15 22:24:34
[INFO] Move ant log files.
2020-02-15 22:24:35
[INFO] The installation of Dameng database is complete.
Please execute the command as the root system user:
/home/dmdba/dmdbmss/script/root/root_installer.sh

End of installation

Guess you like

Origin blog.csdn.net/weixin_43459159/article/details/104342235