达梦数据库安装

一、安装前环境准备

1.创建用户

groupadd dinstall
useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba

id dmdba
uid=1000(dmdba) gid=1000(dinstall) 组=1000(dinstall)

2.操作系统资源限制检查

ulimit -SHn 65535

vim /etc/security/limits.conf
*   soft   nofile   65535
*   hard   nofile   65535
*   soft   nproc   65535
*   hard   nproc   65535

vim /etc/sysctl.conf
fs.file-max=655360
net.ipv4.ip_forward = 1
net.ipv6.conf.all.disable_ipv6 =1
sysctl -p

关闭防火墙
systemctl stop firewalld && systemctl disable firewalld

3.上传安装包解压挂载

unzip dm8_20240116_x86_rh7_64.zip
yum install -y unzip
unzip dm8_20240116_x86_rh7_64.zip
mount dm8_20240116_x86_rh7_64.iso /mnt/

4.切换到dmdba配置环境变量

su - dmdba

vim .bash_profile
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/data/dmdbms/bin"
export DM_HOME="/data/dmdbms"
source .bash_profile

二、安装达梦数据库

1.创建安装目录

mkdir -p /data/dmdbms

2.安装

cd /mnt/
./DMInstall.bin -i
安装目录填写/data/dmdbms

切换到dmdba,初始化数据库
su - dmdba
cd /data/dmdbms/bin
./dminit PATH=/data/dmdbms/data  page_size=32 case_sensitive=0 CHARSET=1 EXTENT_SIZE=32 LENGTH_IN_CHAR=1

配置开机启动
/data/dmdbms/script/root/dm_service_installer.sh -t dmserver -p DMSERVER -dm_ini /data/dmdbms/data/DAMENG/dm.ini
systemctl status DmServiceDMSERVER
systemctl enable DmServiceDMSERVER
systemctl start DmServiceDMSERVER
netstat -ntpl|grep 5236
posted @ 2024-08-02 11:34  村尚chun叔  阅读(13)  评论(0编辑  收藏  举报