【DM8】1-达梦数据库DM8的安装

本文详细描述了在Linux服务器上安装达梦数据库DM8的步骤,包括检查系统版本、关闭SELinux和防火墙、设置用户和权限、安装包管理、图形化与命令行安装,以及配置环境变量和测试过程。
摘要由CSDN通过智能技术生成

1-达梦数据库DM8的安装

一、环境:在服务器或者vmware上搭建好linux (图形化界面)

二、DM8的安装

2.1查看系统版本

[root@study ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 8.2 (Ootpa)

2.2在达梦官网找到对应linux版本安装包还有Windows环境下的达梦8的安装包

2.3 关闭selinux和防火墙

[root@study ~]# cat /etc/sysconfig/selinux 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disable
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 

2.4设置系统限制

[root@study /]# cat /etc/security/limits.conf |grep -v "^#"
dmdba soft nofile 65536
dmdba hard nofile 65536

2.5 创建DM用户

[root@study ~]# groupadd dinstall
[root@study ~]# useradd -g dinstall dmdba
[root@study ~]# passwd dmdba

2.6创建目录

[root@study ~]# mkdir -p /dm
[root@study ~]# chown -R  dmdba:dinstall /dm/
[root@study ~]# chmod 775 /dm/

2.7 将达梦官网下载的iso文件上传到linux环境中

我的是Windows传到linux虚拟机中
在cmd中

scp E:\study\达梦\安装包\dm8_20240116_x86_rh7_64\dm8_20240116_x86_rh7_64.iso root@linux的ip地址:/dm
[root@study ~]# cd /dm
[root@study dm]# ls
dm8_20240116_x86_rh7_64.iso
[root@study dm]# mkdir iso 
[root@study dm]# mount /dm/dm8_20240116_x86_rh7_64.iso /dm/iso/
mount: /dev/loop0 写保护,将以只读方式挂载
[root@study dm]# cd /dm/iso/
[root@study iso]# ls
DM8 Install.pdf  DMInstall.bin
[root@study iso]# cp DMInstall.bin /dm/

2.8修改权限

[root@study dm]# chown dmdba:dinstall DMInstall.bin

2.9图形化界面安装

用root执行

[root@study ~]#xhost +
[root@study ~]#echo $DISPLAY

用dmdba用户执行

[dmdba@study dm]# export DISPLAY=:0.0
[dmdba@study dm]# xhost +
[dmdba@study dm]#./DMInstall.bin

在这里插入图片描述
命令行方式安装

[dmdba@study dm]#./DMInstall.bin -i

2.10 配置环境变量

[dmdba@study ~]$ cat ~/.bash_profile 
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/dm/dmdbms/bin"
export DM_HOME="/dm/dmdbms"
export PATH=$PATH:$HOME/bin:$DM_HOME/bin
[dmdba@study ~]$ source ~/.bash_profile 

2.11 测试

[dmdba@study ~]$ disql 
disql V8
用户名: //安装成功
  • 8
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值