logo资料库

Omega2014安装教程.pdf

第1页 / 共32页
第2页 / 共32页
第3页 / 共32页
第4页 / 共32页
第5页 / 共32页
第6页 / 共32页
第7页 / 共32页
第8页 / 共32页
资料共32页,剩余部分请下载后查看
Omega2014 安装教程 ——By 何俊强 2016/10/11 QQ: 761420535 一、系统安装 1、准备刻有 CentOS-6.7-x86_64-bin-DVD1.iso 或者 rhel-server-6.7-x86_64-dvd.iso 的光盘 2、安装系统(最好装在固态硬盘上,机械硬盘做系统盘不能超过 2T) 3、boot 分区分配 256m,swap 分区一般分配两倍内存大小的空间,剩下全给根分区 4、配置网卡(设定 ipv4 的地址) 5、安装全部系统包(选择 custom,注意:有些老机器在装完系统重启后会卡在 tboot,所以老机器在安装系统时不能勾选 base 中的 tboot 包) 二、系统配置及 omega 安装前准备工作 1、准备好 omega2014 文件包,将其拷贝到/home 下, [root@rhel6 home]# chmod -R 777 omega2014 (改权限) 2、[root@rhel6 omega2014]# rpm -ivh ntfs-3g-2011.4.12-5.el6.x86_64.rpm(安装后可挂硬盘) 3、[root@rhel6 omega2014]# tar -xvzf rlwrap-0.24.tar.gz [root@rhel6 omega2014]# cd rlwrap-0.24 [root@rhel6 rlwrap-0.24]# ./configure [root@rhel6 rlwrap-0.24]# make & make install (安装后在 vi 文件时 backspace 键不会出现杂乱字符)
4、配置 Xmanager: [root@rhel6 omega2014]# vi /etc/X11/xdm/xdm-config 将最后一行 DisplayManager.requestPort: 0 注释 [root@rhel6 omega2014]# vi /etc/X11/xdm/Xaccess 将#* #any host can get a login window 的#去掉 [root@rhel6 omega2014]# vi /etc/gdm/custom.conf 设置成 [security] AllowRoot=true AllowRemoteRoot=true DisallowTCP=false [xdmcp] Enable=1 port=177 [root@rhel6 omega2014]# reboot 重启电脑 [root@rhel6 omega2014]# /etc/init.d/iptables stop 关闭防火墙 用网线连接另一台 windows 电脑(电脑 ip 需设置成与工作站同一频段),打开 xmanager 看是否能连上,如果可以,则继续,否则需调试好 5、[root@rhel6 omega2014]# vi /etc/hosts 添加 172.20.10.145 rhel6 rhel6.slb.com rhel6.rhel6(按此格式添加本机的 ip 及主机名) 6、[root@rhel6 omega2014]# vi /etc/security/limits.conf 添加红色字段(设置软硬件数量) # soft nofile 65536 hard nofile 65536 # * * #* soft core 0 7、 [root@rhel6 omega2014]# vi /etc/selinux/config 将 SELINUX=enforcing 改为 disabled (使可以连 ftp) 8、 [root@rhel6 omega2014]# setup 关闭 iptables(防火墙)、sendmail,打开 nfs、rlogin、rsh、rexec、telent、tftp、vncserver、vsftpd 9、 [root@rhel6 omega2014]# xhost +; xclock (验证图形界面是否能起来) 10、 [root@rhel6 omega2014]# cd centos6.7_oracle_lost_rpm [root@rhel6 centos6.7_oracle_lost_rpm]# for m in `cat list`;do rpm -ivh $m;done (安装 oracle 所需的文件包) 11、 [root@rhel6 omega2014]# ./useradd_group (添加用户及用户组) 12、 [root@rhel6 omega2014]# ./chmod_user (修改权限)
三、安装 Oracle [root@rhel6 omega2014]# cd /oracle [root@rhel6 oracle]# tar zxvf /home/omega2014/oracle-scripts-4.8.5-ext.tgz # 必须解压到/oracle 路径下 [root@rhel6 oracle]# cd scripts [root@rhel6 scripts]# ./install-oracle Would you like to Proceed (Yes or No) [Y] ? 回车 Please enter the name of the directory containing the Oracle binary tar kit [/install] : /home/omega2014 The Oracle installation was successful [root@rhel6 scripts]# su - oracle [oracle@rhel6 ~]$ cd /oracle/scripts [oracle@rhel6 ~/scripts]$ ./create-instance Would you like to Proceed (Yes or No) [Y] ? 回车 What type of Oracle instance do you wish to create? Your choices are: 1. OPM 2. InVA 5 3. WHSM 4. SLM 5. OCM Please enter a number in the range 1-5 [1] : 回车 # 缺省是 1 Please enter the name of the new instance (<=8 characters) [rhopm001] : shyopm01 Please enter the size of the instance to create? Your choices are: 1. Standard (Small multi-user center) 2. Small (Laptop/Standalone) 3. Large OPM (For large centers and/or large projects) 4. Custom (Use only with advice from GS-IT or R&E)
Please enter a number in the range 1-4 [1] : 回车 # 缺省是 1 The Oracle instance creation was successful [oracle@rhel6 ~/scripts]$ ./create-instance Would you like to Proceed (Yes or No) [Y] ? 回车 Do you still wish to continue (Yes or No) [Y] ? 回车 What type of Oracle instance do you wish to create? Your choices are: 1. OPM 2. InVA 5 3. WHSM 4. SLM 5. OCM Please enter a number in the range 1-5 [1] : 2 Please enter the name of the new instance (<=8 characters) [rhin5001] : shyin501 Please enter the size of the instance to create? Your choices are: 1. Standard (Multi-user center) 2. Small (Laptop/Standalone) Please enter a number in the range 1-2 [1] : 回车 ...
四、安装 Omega [root@rhel6 Omega2_Installation_Files]# su - omadmin [omadmin@rhel6 ~]$ cd /wg [omadmin@rhel6 /wg]$ tar -xvf /home/omega2014/omega2014.1ext63U5_Depth.tgz [omadmin@rhel6 /wg]$ cd install_64_2014.1EXT-63 [omadmin@rhel6 install_64_2014.1EXT-63]$ vi ConfigSiteOmcar #Replace the site name in Site.omcar - this should not be left to Local or MYSITE but something unique the describes your site set SITE="SHYJG" #Replace the site code - usually the first to letters of your host set SITECODE="" #Replace the domain name of the hosts in Site.omcar set FQDN="slb.com" #Replace the Oracle server host name (short) set OPM="rhel6" #Replace the JSS server host name (short) set JSS="rhel6" #Replace the license server host name - use fully qualified domain name set LICENSESERVER="rhel6.slb.com" #Replace the default admin email id to a working email address to be notified of omega service check failures e.g. omegaupdaterepository, omegawindowsupdate set AdministratorMail="omadmin@city.region.area.company.com" #Replace the WHSM_EVENT_DBINSTANCE value with the Oracle instance where the AQ table has been created to collect WHSM events (alphabets in capital letters) set WHSM_EVENT_DBINSTANCE="" #Edit Site omcar sed -e s/XXsite/$SITE/g \ - e s/XXos001/$OPM/g \ -e s/XXjs001/$JSS/g \ -e s/XXwh001/$OPM/g \ -e s/city.region.area.company.com/$FQDN/g \
-e s/XXopm001/"$SITECODE"shyopm01/g \ -e s/XXin5001/"$SITECODE"shyin501/g \ //与前面创建的名字对应 //与前面创建的名字对应 -e s/omadmin/$AdministratorMail/g \ -e s/@localhost/@$LICENSESERVER/g \ -e s/XXWHS001/$WHSM_EVENT_DBINSTANCE/g \ -e s/XX/$SITECODE/g \ Config/Site.omcar > Config/"$SITE"_Site.omcar [omadmin@rhel6 install_64_2014.1EXT-63]$ ./ ConfigSiteOmcar [omadmin@rhel6 install_64_2014.1EXT-63]$ cp Config/Site.omcar Config/Site.omcar_backup //备份 [omadmin@rhel6 install_64_2014.1EXT-63]$ sed -i “s/2013/2014/g” `grep 2013 -rl Config/Site.omcar` //用 2014 替换该文件中的所有 2013 双引号重新改 下同 [omadmin@rhel6 install_64_2014.1EXT-63]$ sed -i “s|wgplot|wg/plotdata|g” ` grep wgplot -rl Config/Site.omcar` //用 wg/plotdata 替换该文件中的所有 wgplot [omadmin@rhel6 install_64_2014.1EXT-63]$ vimdiff Config/Site.omcar Config/Site.omcar_backup //对比两者的差别,检查是否以上两者皆已修改 [omadmin@rhel6 install_64_2014.1EXT-63]$ vi Config/Site.omcar //将 oracle10.2 改为 11.2 [omadmin@rhel6 install_64_2014.1EXT-63]$ ./InstallOmega -a -d 2014.1extp -o Config/Site.omcar //安装 omega [root@rhel6 ~]# /wg/omega/setup/Setup //生成/usr/bin、/etc/init.d 等目录下所有与 omega2 相关的执行命令 Creating file /etc/omega/InVaAdminLogin Creating file /etc/omega/OPMAdminLogin Creating file /etc/omega/OPMAdminLogin_WHSM_. Creating file /etc/omega/RDMAdminLogin //若没生成则出错 [root@rhel6 init.d]# cd /home/omega2014/ [root@rhel6 omega2014]# rpm -ivh CodeMeter64-5.0.1062-501.x85_64.rpm //安装 omega 补丁 [root@rhel6 omega2014]# rpm -ivh FlexNetPublisher-11.12.0.0-1.x86_64.rpm //安装 omega 补丁 [root@rhel6 omega2014]# rpm -ivh FlexNetPublisher_SLBSLS-11.8.0-5.x86_64.rpm //安装 omega 补丁 [root@rhel6 omega2014]# rpm -ivh FlexNetPublisher_services-11.12.0.0-1.x86_64.rpm //安装 omega 补丁 [root@rhel6 omega2014]# cp /home/omega2014/omega2.lic /opt/licensing/flexlm/licenses/ //拷贝 license [root@rhel6 omega2014]# vi /opt/licensing/flexlm/licenses/omega2.lic //将 hpz800 改成主机名 [root@rhel6 omega2014]# service flexlm restart //启动 license 服务 [root@rhel6 omega2014]# service flexlm status //检查 license 状态 可以不管
五、Omega 及 JSS 的配置 [root@rhel6 omega2014]# sed -i “s#dell148#rhel6#g” `grep dell148 -rl Omega2014_dell148.omcar ` //将 dell148 的配置改成本机 双引号重新改 [omadmin@rhel6 ~]$ omega2 config Open Default F6 No,go ahead and edit Tools-Temporary Disk 填写/scr01(该路径已经建好,并且权限为 777),然后点击 Add
点亮/local/scr,然后点击 Remove 按钮,删除/local/scr 路径 点击 All,再点击 OK 右键 Omega,再点击 import Select,选择/home/omega2014 下的 Omega2014_dell148.omcar,然后 OK
分享到:
收藏