1、查看软硬件信息
查看 cpu 信息
[root@localhost ~]# lscpu
[root@localhost ~]# cat /proc/cpuinfo
注意:国产 cpu 型号,例如:龙芯、飞腾等。
查看内存信息
[root@localhost ~]# free -m
注意:物理内存至少为 1G
查看硬盘和分区的信息
[root@localhost ~]# fdisk -l
[root@localhost ~]# df -h
网络要求:
100M 网卡,支持 TCP/IP 协议
如果数据库需要远程访问,要么关闭防火墙或者开放数据库对应的端口号。
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
[root@localhost ~]# systemctl status firewalld
系统要求:
内核要在 2.6 以上
[root@localhost ~]# uname -ar
Linux localhost.localdomain 4.19.90-24.4.v2101.ky10.x86_64 #1 SMP Mon May 24 12:14:55 CST
x86_64 x86_64 x86_64 GNU/Linux
2、规划路径
[root@localhost ~]# mkdir /dm8
3、规划安装用户
[root@localhost ~]# groupadd dinstall
[root@localhost ~]# useradd -g dinstall dmdba
[root@localhost ~]# passwd dmdba
更改用户 dmdba 的密码 。
新的 密码:
重新输入新的 密码:
passwd:所有的身份验证令牌已经成功更新。
[root@localhost ~]# chown -R dmdba:dinstall /dm8
[root@localhost ~]# ls -ld /dm8/
drwxr-xr-x 2 dmdba dinstall 6 9 月 29 18:48 /dm8/
4、设置文件最大打开数
临时生效:
[root@localhost ~]# ulimit -n 65536
永久生效:
[root@localhost ~]# vi /etc/security/limits.conf
dmdba soft nofile 4096
dmdba hard nofile 65536
5、数据库版本
开发版:不能作为商用、有时间限制
标准版:小型应用,不支持集群(数据守护、读写分、dsc)等高级特性
企业版:中大型应用,三权分离,支持集群高级特性
安全版:在企业版基础上,四权分立,安全性大大增强。
6、数据库软件安装
[root@localhost opt]# mount -o loop /opt/dm8_0818_x86_rh6_64_ent_8.4.2.18_pack14.iso
/mnt
GUI:
[root@localhost mnt]# echo $DISPLAY
:0.0
[root@localhost mnt]# xhost +
access control disabled, clients can connect from any host
[root@localhost mnt]# su - dmdba
[dmdba@localhost ~]$ export DISPLAY=:0.0
[dmdba@localhost ~]$ cd /mnt
[dmdba@localhost mnt]$ ./DMInstall.bin
用 root 账号执行脚本
[root@localhost 桌面]# /dm8/script/root/root_installer.sh
bin :达梦数据库的命令、库文件
drivers :驱动
tool :客户端工具
jar :jar 包(导入导出、快速装载、日志挖掘)
license_en.txt license_zh.txt :许可信息
log :日志文件
script :脚本
uninstall uninstall.sh :数据库软件卸载
Web :dem,类似于 Oracle oem
doc :dm 官方手册
samples :示例
CLI:
[dmdba@localhost mnt]$ ./DMInstall.bin -i