中标麒麟系统下(Neokylin7)达梦数据库的安装(DM8)
1. 環(huán)境檢查
(1) 操作系統(tǒng)檢查
[root@localhost ~]# uname -ra
(2) glibc/glibc-devel包檢查
[root@localhost ~]# rpm -qa|grep glibc
(3)硬件信息
1.磁盤狀況
查看磁盤使用情況:
[root@localhost ~]# df -h
普通分區(qū)工具:
[root@localhost ~]# fdisk -l
*注意:安裝達夢程序,如需記錄大量數(shù)據(jù)庫 SQL 日志,需要擴大分區(qū)/tmp臨時目錄至少 600M
2.內(nèi)存
[root@localhost ~]# fdisk -l
*注意:安裝數(shù)據(jù)庫建議最小內(nèi)存 1G,Linux 服務(wù)器 swap 分區(qū)為物理內(nèi)存 1.5 倍以上
(4)其他要求
網(wǎng)絡(luò)要求:100M 以上支持 TCP/IP 協(xié)議的網(wǎng)卡
*注意:遠程訪問數(shù)據(jù)庫的要求,需要設(shè)置防火墻和 selinux 策略
系統(tǒng)要求:Linux(glibc 2.3 以上,內(nèi)核 2.6,已安裝 KDE/GNOME 桌面環(huán)境,建議
預(yù)先安裝 UnixODBC 組件 gcc 包)
2. 安裝步驟
(1)創(chuàng)建分組、用戶,并修改密碼
[root@localhost ~]# groupadd -g 1002 dinstall
[root@localhost ~]#useradd -u 1002 -g 1002 -m -d /home/dmdba -s /bin/bash dmdba
[root@localhost ~]# passwd dmdba
(2)創(chuàng)建目錄
[root@localhost ~]#mkdir /dm8
[root@localhost ~]#chown -R dmdba.dinstall /dm8
[root@localhost ~]#chmod 775 /dm8
(3) limit配置
[root@localhost ~]# vim /etc/security/limits.conf
dmdba soft nofile 65536
dmdba hard nofile 65536
dmdba soft fsize unlimited
dmdba hard fsize unlimited
dmdba soft data 1048576
dmdba hard data 1048576
(4)安裝數(shù)據(jù)庫軟件
1.圖形化界面安裝
[root@localhost opt]# mount -o loop /opt/dm8_setup.iso /mnt
[root@localhost mnt]# su - dmdba
[dmdba@localhost mnt]$ ./DMInstall.bin
用root用戶執(zhí)行命令后,即可完成達夢數(shù)據(jù)庫軟件的安裝
2.命令行方式安裝
[root@localhost opt]# mount -o loop /opt/dm8_setup.iso /mnt
[root@localhost mnt]# su - dmdba
[dmdba@localhost mnt]$ ./DMInstall.bin -i
根據(jù)提示選擇安裝數(shù)據(jù)庫即可完成安裝達夢數(shù)據(jù)庫軟件
3. 安裝數(shù)據(jù)庫實例
(1)圖形界面
[dmdba@localhost tool]$ cd /dm8/tool
[dmdba@localhost tool]$ ./dbca.sh
使用root用戶運行后,即可成功安裝數(shù)據(jù)庫實例
(2)命令行方式
[dmdba@localhost tool]$ dminit path=/dm8/data DB_NAME=DM02 instance_name=DM02 PORT_NUM=5239
注冊實例服務(wù)到操作系統(tǒng)中:
[root@localhost root]# ./dm_service_installer.sh -t dmserver -dm_ini
/dm8/data/DM02/dm.ini -p DM02
[root@localhost root]# systemctl start DmServiceDM02
總結(jié)
以上是生活随笔為你收集整理的中标麒麟系统下(Neokylin7)达梦数据库的安装(DM8)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: web前端学习之——页面美妆师css3基
- 下一篇: Fasterrcnn代码个人精细解读(先