達夢資料庫安裝步驟
1.創建用戶及群組
[root@localhost ~]# groupadd dinstall
[root@localhost ~]# useradd -g dinstall dmdba
[root@localhost ~]# id dmdba
uid=1001(dmdba) gid=1001(dinstall) 組=1001(dinstall)
[root@localhost ~]# passwd dmdba
2.創建目錄
資料庫安裝目錄
[root@localhost ~]# mkdir /dm8
更改目錄所有者及群組
[root@localhost ~]# chown -R dmdba:dinstall /dm8
3.配置環境變數
su – dmdba
vi .bash_profile
添加以下內容:
export DM_HOME=/dm8
export PATH=$PATH:$HOME/.local/bin:$HOME/bin:$DM_HOME/bin:$DM_HOME/tool
使其生效:
source .bash_profile
4.設定檔案最大打開數目
方式一:[root@localhost ~]vi /etc/profile
加入以下內容并保存退出
ulimit -n 81920
使其生效:
source /etc/profile
方式二:[root@localhost ~]# vi /etc/security/limits.conf
dmdba soft nofile 4096
dmdba hard nofile 65536
5.裝備安裝包
根據服務器的軟體硬體環境及應用需求選擇相應安裝包。
6.安裝資料庫軟體
掛載資料庫安裝包:
[root@localhost opt]# mount -o loop /opt/dm8_setup.iso /mnt
[root@localhost mnt]# ll
總用量633569
-r-xr-xr-x 1 root root 645819977 4 月29 16:51 DMInstall.bin
-r-xr-xr-x 1 root root 2951496 4 月29 16:04 DM_Install.pdf
-r-xr-xr-x 1 root root 848 4 月29 16:07 release_en.txt
-r-xr-xr-x 1 root root 953 4 月29 16:07 release_zh.txt
安裝資料庫軟體:
[root@localhost mnt]# su - dmdba
[dmdba@localhost mnt]$ export DISPLAY=192.168.1.2:0.0
[dmdba@localhost mnt]$ xhost +
[dmdba@localhost mnt]$ ./DMInstall.bin
進入圖形化安裝界面,典型安裝,選擇安裝路徑/dm8,執行腳本。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/15016.html
標籤:其他數據庫
