3. 安装EM、CTM
3.1 关闭防火墙
安装前需要确认防火强已经关闭
3.2 修改服务器hosts映射
配置hosts文件,添加EM、CTM、Agent、Oracle服务器主机的hostname与IP的映射(由于EM与CTM部署在同一台服务器上、Agent部署在ETL服务器上、元数据资料库用户部署在Oracle服务器上,因此hosts中只需要增加三条记录):
[root@Mr-MoJi-Server ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.38.10 Mr-MoJi-Server Mr-MoJi-Server.localhost #此为EM、CTM服务器信息
192.168.38.11 Mr-MoJi-Agent #此为Agent服务器信息
192.168.38.12 Mr-MoJi-DB #此为资料库Oracle服务器信息
注:必须按照以下形式修改
3.3 准备安装文件
Control-M 9.0.19版本 EM与CTM安装文件在同一个压缩包中DROST.9.0.19.200_PP_Linux-x86_64.tar.z,首先创建文件夹Control-M9.0.19存放压缩包,然后将压缩文件上传至服务器/data/tools/Control-M9.0.19/目录下,并进行解压。
[root@Mr-MoJi-Server tools]# id
uid=0(root) gid=0(root) groups=0(root)
[root@Mr-MoJi-Server tools]# pwd
/data/tools
[root@Mr-MoJi-Server tools]# mkdir Control-M9.0.19
[root@Mr-MoJi-Server tools]
执行解压缩
[root@Mr-MoJi-Server tools]# cd Control-M9.0.19
[root@Mr-MoJi-Server Control-M9.0.19]# ls -l
-rwxr-xr-x 1 emuser9 emuser9 7117207605 Aug 17 14:42 DROST.9.0.19.200_PP_Linux-x86_64.tar.z
[root@Mr-MoJi-Server ControlM9.0.19]# tar -zxvf DROST.9.0.19.200_PP_Linux-x86_64.tar.z
CheckReq/
CheckReq/Setup_files/
…… #省略部分解压输出
Updates_for_Full_Control-M_Installation/tools/bmcperl/bin/a2p
Updates_for_Full_Control-M_Installation/tools/GetListOfComponentsToInstall.pl
[root@Mr-MoJi-Server ControlM9.0.19]#
[root@Mr-MoJi-Server ControlM9.0.19]# ls -l
total 6950432
drwxrwxr-x 3 root root 4096 Jan 2 2020 CheckReq
-rwxr-xr-x 1 root root 7117207605 Sep 27 10:52 DROST.9.0.19.200_PP_Linux-x86_64.tar.z
drwxrwxr-x 11 root root 4096 Jan 2 2020 Setup_files
drwxrwxr-x 3 root root 4096 Jan 2 2020 Updates_for_Full_Control-M_Installation
-rwxr-xr-x 1 root root 12462 Dec 10 2019 setup.sh
[root@Mr-MoJi-Server ControlM9.0.19]#
3.4 创建用户
之前写的帖子Control-M 8.0.00版本的安装,是分别介绍了安装EM服务与CTM服务的操作步骤,分别安装时序需要创建两个独立的操作系统用户emuser和ctmuser,对应EM服务与CTM服务。本次Control-M 9版本的安装,采用将EM服务与CTM服务共同部署在一台服务器上,安装方式采用“FULL”模式,因此只需要创建一个操作系统用户即可,这里我创建的用户为emuser9。
以root用户登录EM服务器(192.168.38.10),创建emuser9用户:
注:emuser9使用此csh
[root@Mr-MoJi-Server home]# useradd -d /home/emuser9 -s /bin/csh -m emuser9
设置密码: passwd emuser9(emuser9)
[root@Mr-MoJi-Server home]# passwd emuser9
Changing password for user emuser9.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
3.5 配置用户属性
配置安装目录属组及用户权限
chmod -R 755 /home/emuser9
chown -R emuser9:emuser9 /data/tools/Control-M9.0.19 (安装文件存放目录)
3.6 EM、CTM安装步骤
以emuser9用户登录服务器,切换至安装文件所在目录
[root@Mr-MoJi-Server ~]# su - emuser9
[emuser9@Mr-MoJi-Server ~]$ cd /data/tools/Control-M9.0.19
[emuser9@Mr-MoJi-Server DROST.9.0.20.000_PP_Linux-x86_64]$ ls -l
total 6950448
drwxrwxr-x 3 emuser9 emuser9 4096 Jan 2 2020 CheckReq
-rwxr-xr-x 1 emuser9 emuser9 7117207605 Aug 17 14:42 DROST.9.0.19.200_PP_Linux-x86_64.tar.z
drwxrwxr-x 11 emuser9 emuser9 4096 Jan 2 2020 Setup_files
-rwxr-xr-x 1 emuser9 emuser9 12462 Dec 10 2019 setup.sh
Mr-MoJi-Server%
执行./setup.sh
注意:在使用emuser9执行安装时,Control-M9.0.19目录的属组要设置为emuser9,否则会报错
安装流程如下所示:
[emuser9@Mr-MoJi-Server DROST.9.0.20.000_PP_Linux-x86_64]$ ./setup.sh
步骤1:
同意在非图形模式下安装,输入y并回车
Starting graphical user interface...
GUI mode is not supported for this terminal.
Install will continue in non graphical mode.
Are you sure you want to continue?
== <N> No <Y> Yes ==
Enter command:
y
步骤2:
同意安装许可协议
a.输入s并回车跳过阅读条款
b.输入y并回车同意许可条款
=== Control-M 9.0.19.200 Installation ===
=== License Agreement ===
END USER LICENSE AGREEMENT
BY OPENING THE PACKAGE, DOWNLOADING OR INSTALLING, PRESSING "AGREE" OR "YES" OR USING THE PRODUCT, THE ENTITY OR INDIVIDUAL ENTERING INTO THIS AGREEMENT AGREES TO BE BOUND BY THE FOLLOWING TERMS. IF YOU DO NOT AGREE WITH ANY OF THESE TERMS, DO NOT INSTALL OR USE THE PRODUCT, PROMPTLY RETURN THE PRODUCT TO BMC OR YOUR BMC RESELLER, AND IF YOU RETURNED THE LICENSE WITHIN 15 DAYS OF THE DATE OF YOUR ORDER, CONTACT BMC OR YOUR BMC RESELLER FOR A REFUND OF LICENSE FEES PAID. IF YOU REJECT THIS AGREEMENT, YOU WILL NOT ACQUIRE ANY LICENSE TO USE THE PRODUCT.
This Agreement ("Agreement") is between the entity or individual entering into this Agreement ("Customer") and the BMC Entity for the applicable Region where Customer acquired the License as described in Section 18 ("BMC").
1.GENERAL DEFINITIONS