linux rpm2cpio 解压下载好的rpm包
505
2022-05-30
参考文档:https://eco.dameng.com/
#关闭防火墙和 selinux 并重启 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config systemctl disable --now firewalld
#配源 vim /etc/yum.repos.d/openEuler.repo [OS] name=OS baseurl=http://repo.openeuler.org/openEuler-21.03/OS/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-21.03/OS/$basearch/RPM-GPG-KEY-openEuler [everything] name=everything baseurl=http://repo.openeuler.org/openEuler-21.03/everything/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-21.03/everything/$basearch/RPM-GPG-KEY-openEuler [EPOL] name=EPOL baseurl=http://repo.openeuler.org/openEuler-21.03/EPOL/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-21.03/OS/$basearch/RPM-GPG-KEY-openEuler [debuginfo] name=debuginfo baseurl=http://repo.openeuler.org/openEuler-21.03/debuginfo/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-21.03/debuginfo/$basearch/RPM-GPG-KEY-openEuler [source] name=source baseurl=http://repo.openeuler.org/openEuler-21.03/source/ enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-21.03/source/RPM-GPG-KEY-openEuler [update] name=update baseurl=http://repo.openeuler.org/openEuler-21.03/update/$basearch/ enabled=0 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-21.03/OS/$basearch/RPM-GPG-KEY-openEuler
#更新yum源 yum makecache
#yum安装docker yum -y install docker docker -v systemctl start docker systemctl enable docker
#下载 DM Docker 安装包 mkdir /dm8 cd /dm8 wget -O dm8_docker.tar -c https://download.dameng.com/eco/dm8/dm8_docker.tar #导入镜像 docker import dm8_docker.tar dm8:v01 docker images #启动容器 docker run -itd -p 5236:5236 --name dm8_01 dm8:v01 /bin/bash /startDm.sh docker ps #查看日志来查看启动情况 docker logs -f dm8_01 启动停止,启动,重启数据库 docker stop dm8_01 docker start dm8_01 docker restart dm8_01
#进入容器 docker exec -it dm8_01 bash #执行 source /etc/profile 防止中文乱码 source /etc/profile cd /dm8/bin/ ./disql SYSDBA/SYSDBA
使用管理工具或者其他工具连接DM8数据库
DBeaver21.3连接数据库参考链接:https://bbs.huaweicloud.com/blogs/316252
我使用开源的DBeaver21.3数据库工具连接dm8 #连接国产达梦数据库-dm8 URL :jdbc:dm://IP:5236/DAMENG 类名:dm.jdbc.driver.DmDriver
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。