1 准备工作
安装好Linux操作系统这里选择的是Linux 7:
[root@slave1 software]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
关闭防火墙 和 Selinux:
[root@slave1 software]# systemctl stop firewalld
[root@slave1 software]# systemctl disable firewalld
[root@slave1 software]# vi /etc/selinux/config
[root@slave1 software]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
创建DM用户:
[root@slave1 software]# groupadd dinstall
[root@slave1 software]# useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
[root@slave1 software]# passwd dmdba
Changing password for user dmdba.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@slave1 software]#
创建目录:存储dm数据库文件的空间需要提前规划并挂载好,我这里放在/dm目录下:
[root@slave1 software]# mkdir -p /dm/dmdb