创建dmdba用户、组
[root@localhost ~]# groupadd dinstall
[root@localhost ~]# useradd -g dinstall -d /home/dmdba -s /bin/bash -m dmdba
[root@localhost ~]# 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.
修改dmdba用户参数
[root@localhost ~]# cat /etc/security/limits.d/20-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 4096
root soft nproc unlimited
dmdba soft data unlimited
dmdba hard data unlimited
dmdba hard fsize unlimited
dmdba soft fsize unlimited
dmdba soft nofile 65536
dmdba hard nofile 65536
dmdba soft nproc unlimited
dmdba hard nproc unlimited
创建安装路径、上传介质并挂载
[root@localhost ~]# mkdir /dm8
[root@localhost ~]# chown dmdba:dinstall /dm8
[root@localhost ~]# ll /opt/
total 612576
-rw-r--r-- 1 root root 627277824 Dec 25 13:43 dm8_setup_rh7_64_ent_8.1.1.45_20191121.iso
挂载
[root@localhost ~]# mount -o loop /opt/dm8_setup_rh7_64_ent_8.1.1.45_20191121.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only
[root@localhost ~]# ll /mnt/
total 612183
-r-xr-xr-x 1 root root 621266362 Nov 21 2019 DMInstall.bin
-r-xr-xr-x 1 root root 2266249 Nov 21 2019 DM_Install_en.pdf
-r-xr-xr-x 1 root root 3339473 Nov 21 2019 DM_Install_zh.pdf
-r-xr-xr-x 1 root root 848 Nov 21 2019 release_en.txt
-r-xr-xr-x 1 root root 953 Nov 21 2019 release_zh.txt
镜像内容拷贝至dmdba权限下的目录,为了用dmdba用户安装
dmdba用户创建一个放介质的目录
[dmdba@localhost ~]$ mkdir soft
[dmdba@localhost ~]$ cp /mnt/* ./soft/
[dmdba@localhost ~]$ ll soft/
total 612196
-r-xr-xr-x 1 dmdba dinstall 621266362 Dec 25 13:47 DMInstall.bin
-r-xr-xr-x 1 dmdba dinstall 2266249 Dec 25 13:47 DM_Install_en.pdf
-r-xr-xr-x 1 dmdba dinstall 3339473 Dec 25 13:47 DM_Install_zh.pdf
-r-xr-xr-x 1 dmdba dinstall 848 Dec 25 13:47 release_en.txt
-r-xr-xr-x 1 dmdba dinstall 953 Dec 25 13:47 release_zh.txt
我的是英文环境,所以要改成中文字符集
[dmdba@localhost ~]$ export LANG="zh_CN.UTF-8"
[dmdba@localhost ~]$ echo $LANG
zh_CN.UTF-8
进行安装
[dmdba@localhost ~]$ cd soft/
[dmdba@localhost soft]$ ls
DMInstall.bin DM_Install_en.pdf DM_Install_zh.pdf release_en.txt release_zh.txt
[dmdba@localhost soft]$ ./DMInstall.bin
解压安装程序....
选择语言,时区
[root@localhost ~]# groupadd dinstall [root@localhost ~]# useradd -g dinstall -d /home/dmdba -s /bin/bash -m dmdba [root@localhost ~]# 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.
修改dmdba用户参数
[root@localhost ~]# cat /etc/security/limits.d/20-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 4096
root soft nproc unlimited
dmdba soft data unlimited
dmdba hard data unlimited
dmdba hard fsize unlimited
dmdba soft fsize unlimited
dmdba soft nofile 65536
dmdba hard nofile 65536
dmdba soft nproc unlimited
dmdba hard nproc unlimited
创建安装路径、上传介质并挂载
[root@localhost ~]# mkdir /dm8
[root@localhost ~]# chown dmdba:dinstall /dm8
[root@localhost ~]# ll /opt/
total 612576
-rw-r--r-- 1 root root 627277824 Dec 25 13:43 dm8_setup_rh7_64_ent_8.1.1.45_20191121.iso
挂载
[root@localhost ~]# mount -o loop /opt/dm8_setup_rh7_64_ent_8.1.1.45_20191121.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only
[root@localhost ~]# ll /mnt/
total 612183
-r-xr-xr-x 1 root root 621266362 Nov 21 2019 DMInstall.bin
-r-xr-xr-x 1 root root 2266249 Nov 21 2019 DM_Install_en.pdf
-r-xr-xr-x 1 root root 3339473 Nov 21 2019 DM_Install_zh.pdf
-r-xr-xr-x 1 root root 848 Nov 21 2019 release_en.txt
-r-xr-xr-x 1 root root 953 Nov 21 2019 release_zh.txt
镜像内容拷贝至dmdba权限下的目录,为了用dmdba用户安装
dmdba用户创建一个放介质的目录
[dmdba@localhost ~]$ mkdir soft
[dmdba@localhost ~]$ cp /mnt/* ./soft/
[dmdba@localhost ~]$ ll soft/
total 612196
-r-xr-xr-x 1 dmdba dinstall 621266362 Dec 25 13:47 DMInstall.bin
-r-xr-xr-x 1 dmdba dinstall 2266249 Dec 25 13:47 DM_Install_en.pdf
-r-xr-xr-x 1 dmdba dinstall 3339473 Dec 25 13:47 DM_Install_zh.pdf
-r-xr-xr-x 1 dmdba dinstall 848 Dec 25 13:47 release_en.txt
-r-xr-xr-x 1 dmdba dinstall 953 Dec 25 13:47 release_zh.txt
我的是英文环境,所以要改成中文字符集
[dmdba@localhost ~]$ export LANG="zh_CN.UTF-8"
[dmdba@localhost ~]$ echo $LANG
zh_CN.UTF-8
进行安装
[dmdba@localhost ~]$ cd soft/
[dmdba@localhost soft]$ ls
DMInstall.bin DM_Install_en.pdf DM_Install_zh.pdf release_en.txt release_zh.txt
[dmdba@localhost soft]$ ./DMInstall.bin
解压安装程序....
选择语言,时区
[root@localhost ~]# mkdir /dm8 [root@localhost ~]# chown dmdba:dinstall /dm8 [root@localhost ~]# ll /opt/ total 612576 -rw-r--r-- 1 root root 627277824 Dec 25 13:43 dm8_setup_rh7_64_ent_8.1.1.45_20191121.iso 挂载 [root@localhost ~]# mount -o loop /opt/dm8_setup_rh7_64_ent_8.1.1.45_20191121.iso /mnt mount: /dev/loop0 is write-protected, mounting read-only [root@localhost ~]# ll /mnt/ total 612183 -r-xr-xr-x 1 root root 621266362 Nov 21 2019 DMInstall.bin -r-xr-xr-x 1 root root 2266249 Nov 21 2019 DM_Install_en.pdf -r-xr-xr-x 1 root root 3339473 Nov 21 2019 DM_Install_zh.pdf -r-xr-xr-x 1 root root 848 Nov 21 2019 release_en.txt -r-xr-xr-x 1 root root 953 Nov 21 2019 release_zh.txt
镜像内容拷贝至dmdba权限下的目录,为了用dmdba用户安装
dmdba用户创建一个放介质的目录
[dmdba@localhost ~]$ mkdir soft
[dmdba@localhost ~]$ cp /mnt/* ./soft/
[dmdba@localhost ~]$ ll soft/
total 612196
-r-xr-xr-x 1 dmdba dinstall 621266362 Dec 25 13:47 DMInstall.bin
-r-xr-xr-x 1 dmdba dinstall 2266249 Dec 25 13:47 DM_Install_en.pdf
-r-xr-xr-x 1 dmdba dinstall 3339473 Dec 25 13:47 DM_Install_zh.pdf
-r-xr-xr-x 1 dmdba dinstall 848 Dec 25 13:47 release_en.txt
-r-xr-xr-x 1 dmdba dinstall 953 Dec 25 13:47 release_zh.txt
我的是英文环境,所以要改成中文字符集
[dmdba@localhost ~]$ export LANG="zh_CN.UTF-8"
[dmdba@localhost ~]$ echo $LANG
zh_CN.UTF-8
进行安装
[dmdba@localhost ~]$ cd soft/
[dmdba@localhost soft]$ ls
DMInstall.bin DM_Install_en.pdf DM_Install_zh.pdf release_en.txt release_zh.txt
[dmdba@localhost soft]$ ./DMInstall.bin
解压安装程序....
选择语言,时区
[dmdba@localhost ~]$ cd soft/ [dmdba@localhost soft]$ ls DMInstall.bin DM_Install_en.pdf DM_Install_zh.pdf release_en.txt release_zh.txt [dmdba@localhost soft]$ ./DMInstall.bin 解压安装程序....
选择语言,时区
欢迎页
生产环境需输入KEY,否则无安全特性
选择典型安装
典型安装包括:服务器、客户端、驱动、用户手册、数据库服务。
服务器安装包括:服务器、驱动、用户手册、数据库服务。
客户端安装包括:客户端、驱动、用户手册。
自定义安装包括:根据用户需要勾选组件,可以是服务器、客户端、驱动、用户手册、数据库服务中的任意组合。
输入创建的安装目录
安装
使用root执行脚本
[root@localhost ~]# /dm8/script/root/root_installer.sh 移动 /dm8/bin/dm_svc.conf 到/etc目录 修改服务器权限 创建DmAPService服务 Created symlink from /etc/systemd/system/multi-user.target.wants/DmAPService.service to /usr/lib/systemd/system/DmAPService.service. 创建服务(DmAPService)完成 启动DmAPService服务
确定,已完成