Connecting to 10.0.0.13:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Last login: Thu Aug 18 09:47:12 2022
[root@LXR ~]# groupadd dinstall
[root@LXR ~]#
[root@LXR ~]# useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
[root@LXR ~]# vim /etc/security/limits.conf
[root@LXR ~]#
[root@LXR ~]# su - dmdba
[dmdba@LXR ~]$ ulimit -n 65536
[dmdba@LXR ~]$ exit
logout
[root@LXR ~]# rz -E
rz waiting to receive.
[root@LXR ~]# unzip dm8_20220701_x86_rh6_64_ent.zip
Archive: dm8_20220701_x86_rh6_64_ent.zip
creating: dm8_20220701_x86_rh6_64_ent/
inflating: dm8_20220701_x86_rh6_64_ent/dm8_20220701_x86_rh6_64_ent_8.1.2.128.iso
inflating: dm8_20220701_x86_rh6_64_ent/dm8_20220701_x86_rh6_64_ent_8.1.2.128.iso_SHA256.txt
[root@LXR ~]# mount -o loop ./dm8_20220701_x86_rh6_64_ent/dm8_20220701_x86_rh6_64_ent_8.1.2.128.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only
[root@LXR ~]# mkdir /dm8
[root@LXR ~]#
[root@LXR ~]# chown dmdba:dinstall -R /dm8/
[root@LXR ~]#
[root@LXR ~]# chmod -R 755 /dm8
[root@LXR ~]# su - dmdba
Last login: Thu Sep 15 10:28:26 CST 2022 on pts/0
[dmdba@LXR ~]$
[dmdba@LXR ~]$ cd /mnt/
[dmdba@LXR mnt]$
[dmdba@LXR mnt]$ ./DMInstall.bin -i
Please select the installer's language (E/e:English C/c:Chinese) [E/e]:c
解压安装程序.........
欢迎使用达梦数据库安装程序
是否输入Key文件路径? (Y/y:是 N/n:否) [Y/y]:n
是否设置时区? (Y/y:是 N/n:否) [Y/y]:y
设置时区:
请选择设置时区 [21]:
安装类型:
请选择安装类型的数字序号 [1 典型安装]:
所需空间: 1602M
请选择安装目录 [/home/dmdba/dmdbms]:/dm8
可用空间: 14G
是否确认安装路径(/dm8)? (Y/y:是 N/n:否) [Y/y]:y
安装前小结
安装位置: /dm8
所需空间: 1602M
可用空间: 14G
版本信息:
有效日期:
安装类型: 典型安装
是否确认安装? (Y/y:是 N/n:否):y
2022-09-15 10:38:17
...
2022-09-15 10:38:25
[INFO] 移动日志文件。
2022-09-15 10:38:26
[INFO] 安装达梦数据库完成。
请以root系统用户执行命令:
/dm8/script/root/root_installer.sh
安装结束
[dmdba@LXR mnt]$ exit
logout
[root@LXR ~]#
[root@LXR ~]# /dm8/script/root/root_installer.sh
移动 /dm8/bin/dm_svc.conf 到/etc目录
修改服务器权限
创建DmAPService服务
Created symlink from /etc/systemd/system/multi-user.target.wants/DmAPService.service to /usr/lib/systemd/system/DmAPService.service.
创建服务(DmAPService)完成
启动DmAPService服务
[root@LXR ~]# cd /home/dmdba/
[root@LXR dmdba]#
[root@LXR dmdba]# vim .bash_profile
[root@LXR dmdba]# su - dmdba
[dmdba@LXR ~]$ source .bash_profile
[dmdba@LXR ~]$ cd /dm8/bin
[dmdba@LXR bin]$ ./dminit path=/dm8/data PAGE_SIZE=32 EXTENT_SIZE=32 CASE_SENSITIVE=y CHARSET=1 DB_NAME=DMDB INSTANCE_NAME=DMDB_03
initdb V8
db version: 0x7000c
file dm.key not found, use default license!
License will expire on 2023-06-30
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL
log file path: /dm8/data/DMDB/DMDB01.log
log file path: /dm8/data/DMDB/DMDB02.log
write to dir [/dm8/data/DMDB].
create dm database success. 2022-09-15 10:44:38
[dmdba@LXR bin]$ exit
logout
[root@LXR dmdba]# cd /dm8/script/root
[root@LXR root]#
[root@LXR root]# ./dm_service_installer.sh -t dmserver -dm_ini /dm8/data/DMDB/dm.ini -p DMDB_03
Created symlink from /etc/systemd/system/multi-user.target.wants/DmServiceDMDB_03.service to /usr/lib/systemd/system/DmServiceDMDB_03.service.
创建服务(DmServiceDMDB_03)完成
[root@LXR root]# systemctl start DmServiceDMSERVER.service
Failed to start DmServiceDMSERVER.service: Unit not found.
[root@LXR root]# systemctl start DmServiceDMDB_03.service
[root@LXR root]# systemctl status DmServiceDMDB_03.service
● DmServiceDMDB_03.service - DM Instance Service(DmServiceDMDB_03).
Loaded: loaded (/usr/lib/systemd/system/DmServiceDMDB_03.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2022-09-15 10:47:24 CST; 15s ago
Process: 5776 ExecStart=/dm8/bin/DmServiceDMDB_03 start (code=exited, status=0/SUCCESS)
Main PID: 5800 (dmserver)
CGroup: /system.slice/DmServiceDMDB_03.service
└─5800 /dm8/bin/dmserver path=/dm8/data/DMDB/dm.ini -noconsole
Sep 15 10:47:09 LXR systemd[1]: Starting DM Instance Service(DmServiceDMDB_03)....
Sep 15 10:47:24 LXR DmServiceDMDB_03[5776]: [38B blob data]
Sep 15 10:47:24 LXR systemd[1]: Started DM Instance Service(DmServiceDMDB_03)..
[root@LXR root]#