在中标麒麟V7中安装达梦数据库DM8

一、系统安装
1.安装中标麒麟系统:不要最小安装,要勾选GUI界面。(安装时间相对长些)
2.进入root账户
3.启动网络并设置网络自启动
4.查看IP地址:ip addr
5.打开命令行终端 或 SSH登录root

二、配置VNC-server
1.配置防火墙
[root@localhost ~]# iptables -I INPUT -p tcp --dport 5901 -j ACCEPT
[root@localhost ~]# iptables -I INPUT -p tcp --dport 5902 -j ACCEPT

2.安装vnc-server
[root@localhost ~]# yum install tigervnc-server

3.配置vnc服务
[root@localhost ~]# cp /lib/systemd/system/[email protected] /lib/systemd/system/[email protected]
[root@localhost ~]# vi /lib/systemd/system/[email protected]
[root@localhost ~]# systemctl daemon-reload
在中标麒麟V7中安装达梦数据库DM8_第1张图片

  1. 更新systemctl以使其生效;
    [root@localhost ~]# systemctl start vncserver@:1.service
    5.启动vnc:
    [root@localhost ~]# vncserver
    6.设置vnc开机自动启动
    [root@localhost ~]# systemctl enable vncserver@:1.service
    7.使用客户端连接服务器

三、安装达梦数据库
1.创建DM8安装路径
[root@localhost mnt]# mkdir /dm8
2.创建DM8安装用户组dinstall和用户dmdba ,然后设置dmdba用户的密码
[root@localhost mnt]# groupadd dinstall
[root@localhost mnt]# useradd -g dinstall dmdba
[root@localhost mnt]# passwd dmdba
3.设置安装路径访问权限
[root@localhost mnt]# chown -R dmdba:dinstall /dm8
4.登录dmdba用户,设置环境变量,并使其生效
[root@localhost mnt]# su - dmdba
[dmdba@localhost ~]$ vi .bash_profile
[dmdba@localhost ~]$ source .bash_profile
在中标麒麟V7中安装达梦数据库DM8_第2张图片

5.切换到root用户,设置文件最大打开数目
[dmdba@localhost ~]$ su – root
[root@localhost ~]# vi /etc/security/limits.conf
dmdba soft nofile 4096
dmdba hard nofile 65536
在中标麒麟V7中安装达梦数据库DM8_第3张图片

6.把dm8_setup.iso安装包放到/opt目录下
7.打开终端,把 /opt/dm8_setup.iso挂载到/mnt
[root@localhost opt]# mount -o loop /opt/dm8_setup_for_training.iso /mnt
mount: /dev/loop0 写保护,将以只读方式挂载

8.设置通过命令行启动图形化界面
[root@localhost ~]# export DISPLAY=localhost:1
[root@localhost ~]# xhost +
access control disabled, clients can connect from any host
8.切换为dmdba用户,通过命令行启动DM8图形化安装
[root@localhost ~]# su - dmdba
[dmdba@localhost ~]$ export DISPLAY=localhost:1
[dmdba@localhost ~]$ xhost +
access control disabled, clients can connect from any host
[dmdba@localhost mnt]$ cd /mnt
[dmdba@localhost mnt]$ ./DMInstall.bin
9.注意安装时修改安装目录 在中标麒麟V7中安装达梦数据库DM8_第4张图片

10.安装中需要打开另一个终端,在root下进行命令
在中标麒麟V7中安装达梦数据库DM8_第5张图片
在中标麒麟V7中安装达梦数据库DM8_第6张图片

以上为中标麒麟V7中安装达梦数据库DM8的过程。

你可能感兴趣的:(在中标麒麟V7中安装达梦数据库DM8)