达梦数据库安装步骤
杉山祥子 2020-06-19 05:58:01 达梦数据库安装步骤
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,执行脚本。