dm数据库 linux版下载,达梦(DM)数据库Linux部署安装

1. 准备工作

1.1关闭firewalld防火墙和Selinux

1

2

3

4

5

6

#查看firwalld的状态

systemctl status firewalld

#停止firewalld

systemctl stop firewalld

#禁用firewalld

systemctl disable firewalld

deeaebee0d40957db11ff6db2e3ac270.png

#查看Selinux状态

getenforce

#关闭Selinux

vim /etc/selinux/config

SELINUX=disabled

535c8553c4d160aa1e095e7cdea550e6.png

1.2重启服务器、立即生效配置

reboot

2. 安装操作

2.1拷贝安装包iso到服务器&挂载

拷贝iso文件到/opt/soft/DM7:

cd /opt/soft/DM7

mount dm7开发版(rh7-64)20190917.iso /mnt/

b5debe96361f7d732770010f6e73822e.png

2.2创建DM安装用户和安装用户组并初始化用户密码

groupadd dinstall

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

passwd dmdba

4340d0f19a1ecf4be0193c856afafc0c.png

2.3创建目录

规划好存储dm数据库文件的目录,这里放在/opt/dm/目录下

mkdir -p /opt/dm/dmdbms

mkdir -p /opt/dm/dmarch

mkdir -p /opt/dm/dmbak

chown -R dmdba:dinstall /opt/dm/

chmod -R 775 /opt/dm/

49c3ab484f49b93c086e3c3112b3c662.png

2.4配置环境变量

echo export PATH=$PATH:/opt/dm/dmdbms/bin >> /etc/profile

source /etc/profile

a600c3e7cc1c159298e43f88c8bb1dbb.png

2.5拷贝安装文件

cp -r /mnt/* /opt/dm/

cd /opt/dm/

75aec136e12b671d5d2e704b701ec58f.png

# DMInstall.bin 文件就是DM的安装程序。在运行安装程序前,需要赋予DMInstall.bin文件执行权限

chmod 755 ./DMInstall.bin

60a35de17c5ce2be186c3c489180555b.png

2.6命令行安装

cd /opt/dm/

./DMInstall.bin -i

2a36859fa723f1c226e888563024ea63.png

48304ba5e6f9fe08f3fa1abda7d326ab.png

1)Please select the installer's language (E/e:English C/c:Chinese) [E/e]:

选择语言,默认使用英语安装,直接回车

2)Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:N

验证Key文件:用户可以选择是否输入 Key 文件路径,这里选择N。

3)Whether to Set The TimeZone? (Y/y:Yes N/n:No) [Y/y]:y

Please Select the TimeZone [21]:21

选择21([21]: GTM+08=China)

4)Please Input the number of the Installation Type [1 Typical]:1

5)Please Input the install path [/opt/dmdbms]:/opt/dm/dmdbms

6)Please Confirm the install path(/opt/dm/dmdbms)? (Y/y:Yes N/n:No) [Y/y]:y

7)Pre-Installation Summary

Installation Location: /opt/dm/dmdbms

Require Space: 963M

Available Space: 88G

Version Information:

Expire Date:

Installation Type: Typical

Confirm to Install? (Y/y:Yes N/n:No):y

8)等待安装完毕。

48304ba5e6f9fe08f3fa1abda7d326ab.png

c1bb93bb778e39fdf53027591ff74c7a.png

2be385dbc86e9539823e0960928497cf.png

9) 创建DM数据库实例

#查看帮助

cd /opt/dm/dmdbms/bin/

./dminit help

#带参数的方式执行dminit

./dminit PATH=/opt/dm/dmdbms/data DB_NAME=testdb INSTANCE_NAME=dmsrv

0d3b7128019585e4dea41e085c2d6103.png

10)注册数据库服务

[root@ root]# ./dm_service_installer.sh -t dmserver -i /opt/dm/dmdbms/data/testdb/dm.ini -p dmsrv

f5b448db596cf2a46386e4f86b747992.png

48304ba5e6f9fe08f3fa1abda7d326ab.png

11)测试注册是否成功

service  DmServicedmsrv start

12)#查看端口监听状态(dminit初始化时默认PORT_NUM=5236)

netstat -an |grep 5236

13)#查看进程

[root@localhost bin]# ps aux|grep dmserver

48304ba5e6f9fe08f3fa1abda7d326ab.png

d8e66626bf6c62b402bb4ebbc9dd5fea.png

14)#数据库实例创建完成,使用disql登录验证一下(#如果没有单独设置或修改过的话,默认SYSDBA用户密码相同。)

[root@localhost bin]# disql  SYSDBA/SYSDBA

e1c8e165470f57843efed9ef42cd5c42.png

fdd17a0a55db01111215be2ec8395a9d.png

至此,达梦数据库部署成功!

hey,shanqw.停下休息的时候不要忘记别人在奔跑!

来源:追风皇帝    https://www.cnblogs.com/shanqw/

标签:opt,bin,dm,Please,dmdbms,firewalld,DM,Linux,达梦

来源: https://www.cnblogs.com/rxxbb123/p/14233742.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值