194 lines
4.6 KiB
Markdown
194 lines
4.6 KiB
Markdown
|
||||
|
|
|
|||
|
|
130.120.3.75:
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
cat /etc/redhat-release
|
|||
|
|
CentOS Linux release 7.5.1804 (Core)
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
|
|||
|
|
download :
|
|||
|
|
```url
|
|||
|
|
https://download.dameng.com/eco/adapter/DM8/202405/dm8_20240408_x86_rh7_64_ent_8.1.3.140.zip
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
|
|||
|
|
create user:
|
|||
|
|
```bash
|
|||
|
|
sudo groupadd dinstall
|
|||
|
|
sudo useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
|
|||
|
|
disable selinux
|
|||
|
|
```bash
|
|||
|
|
sudo vim /etc/selinux/config
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
limit
|
|||
|
|
```
|
|||
|
|
sudo vim /etc/security/limits.d/dmdba.conf
|
|||
|
|
dmdba soft nofile 65536
|
|||
|
|
dmdba hard nofile 65536
|
|||
|
|
dmdba soft nproc 4096
|
|||
|
|
dmdba hard nproc 63653
|
|||
|
|
dmdba soft core unlimited
|
|||
|
|
dmdba hard core unlimited
|
|||
|
|
|
|||
|
|
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
install
|
|||
|
|
```bash
|
|||
|
|
|
|||
|
|
sudo mkdir -p /opt/db/dm
|
|||
|
|
|
|||
|
|
sudo chown -R dmdba:dinstall /opt/db/dm
|
|||
|
|
|
|||
|
|
sudo chmod -R 775 /opt/db/dm
|
|||
|
|
|
|||
|
|
su - dmdba
|
|||
|
|
|
|||
|
|
cd /opt/db/dm
|
|||
|
|
unzip dm8_20240408_x86_rh7_64_ent_8.1.3.140.zip
|
|||
|
|
Archive: dm8_20240408_x86_rh7_64_ent_8.1.3.140.zip
|
|||
|
|
inflating: dm8_20240408_x86_rh7_64.iso
|
|||
|
|
inflating: dm8_20240408_x86_rh7_64.iso_SHA256.txt
|
|||
|
|
|
|||
|
|
sudo mkdir /mnt/iso
|
|||
|
|
sudo mount -o loop /opt/db/dm/dm8_20240408_x86_rh7_64.iso /mnt/iso
|
|||
|
|
su - dmdba
|
|||
|
|
./DMInstall.bin -i
|
|||
|
|
Installer Language:
|
|||
|
|
[1]: 简体中文
|
|||
|
|
[2]: English
|
|||
|
|
Please select the installer's language [2]:
|
|||
|
|
Extract install files.........
|
|||
|
|
Welcome to DM DBMS Installer
|
|||
|
|
|
|||
|
|
Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:n
|
|||
|
|
|
|||
|
|
Whether to Set The TimeZone? (Y/y:Yes N/n:No) [Y/y]:y
|
|||
|
|
TimeZone:
|
|||
|
|
[ 1]: (GTM-12:00) West Date Line
|
|||
|
|
[ 2]: (GTM-11:00) Samoa
|
|||
|
|
[ 3]: (GTM-10:00) Hawaii
|
|||
|
|
[ 4]: (GTM-09:00) Alaska
|
|||
|
|
[ 5]: (GTM-08:00) Pacific(America and Canada)
|
|||
|
|
[ 6]: (GTM-07:00) Arizona
|
|||
|
|
[ 7]: (GTM-06:00) Central(America and Canada)
|
|||
|
|
[ 8]: (GTM-05:00) East(America and Canada)
|
|||
|
|
[ 9]: (GTM-04:00) Atlantic(America and Canada)
|
|||
|
|
[10]: (GTM-03:00) Brasilia
|
|||
|
|
[11]: (GTM-02:00) Middle Atlantic
|
|||
|
|
[12]: (GTM-01:00) Azores
|
|||
|
|
[13]: (GTM) Greenwich Mean Time
|
|||
|
|
[14]: (GTM+01:00) Sarajevo
|
|||
|
|
[15]: (GTM+02:00) Cairo
|
|||
|
|
[16]: (GTM+03:00) Moscow
|
|||
|
|
[17]: (GTM+04:00) AbuDhabi
|
|||
|
|
[18]: (GTM+05:00) Islamabad
|
|||
|
|
[19]: (GTM+06:00) Dakar
|
|||
|
|
[20]: (GTM+07:00) BangKok,Hanoi
|
|||
|
|
[21]: (GTM+08:00) China
|
|||
|
|
[22]: (GTM+09:00) Seoul
|
|||
|
|
[23]: (GTM+10:00) Guam
|
|||
|
|
[24]: (GTM+11:00) Solomon
|
|||
|
|
[25]: (GTM+12:00) Fiji
|
|||
|
|
[26]: (GTM+13:00) Nukualofa
|
|||
|
|
[27]: (GTM+14:00) Kiribati
|
|||
|
|
Please Select the TimeZone [9]:21
|
|||
|
|
|
|||
|
|
Installation Type:
|
|||
|
|
1 Typical
|
|||
|
|
2 Server
|
|||
|
|
3 Client
|
|||
|
|
4 Custom
|
|||
|
|
Please Input the number of the Installation Type [1 Typical]:1
|
|||
|
|
Require Space: 2310M
|
|||
|
|
|
|||
|
|
Please Input the install path [/home/dmdba/dmdbms]:/opt/db/dm/dmdbms
|
|||
|
|
Available Space:32G
|
|||
|
|
Please Confirm the install path(/opt/db/dm/dmdbms)? (Y/y:Yes N/n:No) [Y/y]:y
|
|||
|
|
|
|||
|
|
Pre-Installation Summary
|
|||
|
|
Installation Location: /opt/db/dm/dmdbms
|
|||
|
|
Require Space: 2310M
|
|||
|
|
Available Space: 32G
|
|||
|
|
Version Information:
|
|||
|
|
Expire Date:
|
|||
|
|
Installation Type: Typical
|
|||
|
|
Confirm to Install? (Y/y:Yes N/n:No):y
|
|||
|
|
2024-06-28 04:55:28
|
|||
|
|
[INFO] Installing DM DBMS...
|
|||
|
|
2024-06-28 04:55:28
|
|||
|
|
[INFO] Installing BASE Module...
|
|||
|
|
2024-06-28 04:55:38
|
|||
|
|
[INFO] Installing SERVER Module...
|
|||
|
|
2024-06-28 04:55:41
|
|||
|
|
[INFO] Installing CLIENT Module...
|
|||
|
|
2024-06-28 04:55:46
|
|||
|
|
[INFO] Installing DRIVERS Module...
|
|||
|
|
2024-06-28 04:55:50
|
|||
|
|
[INFO] Installing MANUAL Module...
|
|||
|
|
2024-06-28 04:55:51
|
|||
|
|
[INFO] Installing SERVICE Module...
|
|||
|
|
2024-06-28 04:55:51
|
|||
|
|
[INFO] Move log file to log directory.
|
|||
|
|
2024-06-28 04:55:52
|
|||
|
|
[INFO] Installed DM DBMS completely.
|
|||
|
|
|
|||
|
|
Please execute the commands by root:
|
|||
|
|
/opt/db/dm/dmdbms/script/root/root_installer.sh
|
|||
|
|
|
|||
|
|
End
|
|||
|
|
|
|||
|
|
[dmdba@localhost iso]$ su -
|
|||
|
|
/opt/db/dm/dmdbms/script/root/root_installer.sh
|
|||
|
|
Move /opt/db/dm/dmdbms/bin/dm_svc.conf to /etc
|
|||
|
|
Create the DmAPService service
|
|||
|
|
Created symlink from /etc/systemd/system/multi-user.target.wants/DmAPService.service to /usr/lib/systemd/system/DmAPService.service.
|
|||
|
|
Finished to create the service (DmAPService)
|
|||
|
|
Start the DmAPService service
|
|||
|
|
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
init db
|
|||
|
|
```bash
|
|||
|
|
cd /opt/db/dm/dmdbms/bin
|
|||
|
|
|
|||
|
|
./dminit PATH=/opt/db/dm/dmdbms/data DB_NAME=DMDB INSTANCE_NAME=DMDW PORT_NUM=5236
|
|||
|
|
initdb V8
|
|||
|
|
db version: 0x7000c
|
|||
|
|
file dm.key not found, use default license!
|
|||
|
|
License will expire on 2025-03-21
|
|||
|
|
Normal of FAST
|
|||
|
|
Normal of DEFAULT
|
|||
|
|
Normal of RECYCLE
|
|||
|
|
Normal of KEEP
|
|||
|
|
Normal of ROLL
|
|||
|
|
|
|||
|
|
log file path: /opt/db/dm/dmdbms/data/DMDB/DMDB01.log
|
|||
|
|
|
|||
|
|
|
|||
|
|
log file path: /opt/db/dm/dmdbms/data/DMDB/DMDB02.log
|
|||
|
|
|
|||
|
|
write to dir [/opt/db/dm/dmdbms/data/DMDB].
|
|||
|
|
create dm database success. 2024-06-28 05:18:08
|
|||
|
|
|
|||
|
|
cd /opt/db/dm/dmdbms/script/root
|
|||
|
|
su
|
|||
|
|
Password:
|
|||
|
|
[root@localhost root]# ls
|
|||
|
|
dm_service_installer.sh dm_service_uninstaller.sh root_installer.sh
|
|||
|
|
[root@localhost root]# pwd
|
|||
|
|
/opt/db/dm/dmdbms/script/root
|
|||
|
|
[root@localhost root]# ./dm_service_installer.sh -t dmserver -dm_ini /opt/db/dm/dmdbms/data/DMDB/dm.ini -p DMDW
|
|||
|
|
Created symlink from /etc/systemd/system/multi-user.target.wants/DmServiceDMDW.service to /usr/lib/systemd/system/DmServiceDMDW.service.
|
|||
|
|
Finished to create the service (DmServiceDMDW)
|
|||
|
|
|
|||
|
|
|
|||
|
|
```
|
|||
|
|
|