一、準備工作
1、安裝好Linux操作系統:
[root@monitor ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.10 (Santiago)
2、關閉防火牆 和 Selinux:
[root@monitor ~]# service iptables stop
[root@monitor ~]# chkconfig iptables off
3、創建DM用戶:
[root@dm1 ~]# groupadd dinstall
[root@dm1 ~]# useradd -g dinstall dmdba
[root@dm1 ~]# passwd dmdba
4、創建目錄:
[root@dm1 ~]# mkdir -p /dm/dmdbms
[root@dm1 ~]# mkdir -p /dm/dmarch
[root@dm1 ~]# mkdir -p /dm/dmbak
[root@dm1 ~]# chown -R dmdba:dinstall /dm/
[root@dm1 ~]# chmod -R 775 /dm/
5、配置系統限制,在/etc/security/limits.conf 文件中添加如下內容:
dmdba soft nofile 4096
dmdba hard nofile 65536
配置環境變量:在dmdba用戶的~/.bash_profile 裏添加如下內容:
[dm7@monitor ~]$ ~/.bash_profile
export DM_HOME="/dm7/dmdbms"
export LD_LIBRARY_PATH="/dm7/dmdbms/bin:$LD_LIBRARY_PATH"
export PATH="/dm7/dmdbms/bin:$PATH"
注意,在DM 軟件安裝時會自動添加DM_HOME 和 LD_LIBRARY_PATH 變量,這裏只需要添加PATH即可。
二、開始達夢數據庫安裝
1、上傳鏡像,並掛載到讀取目錄下面。
mount dm7_setup_centos7_64_ent_7.6.0.145_20190325.iso /mnt
2、將安裝文件複製到/dm 目錄下並修改安裝文件權限:
cp DMInstall.bin /dm/
cd /dm
chown dmdba:dinstall DMInstall.bin
chmod a+x DMInstall.bin
3、用dmdba用戶執行./DMInstall.bin 程序,開始圖形安裝:
/dm/dmdbms/script/root/root_installer.sh
Move /dm/dmdbms/bin/dm_svc.conf to /etc
Modify the files' mode of DM Server
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
安裝成功了,大功告成!