yum -y install gcc
yum -y install gcc-c++
yum -y install libaio
yum -y install libaio-devel
yum -y install sysstat
yum -y install compat-libstdc++-33
yum -y install compat-libcap1
yum -y install ksh
./[OHS].bin
./[OHS].bin -silent -responseFile ohs.rsp [-invPtrLoc oraInst.loc]
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
ORACLE_HOME=[ORACLE_HOME]
INSTALL_TYPE=Standalone HTTP Server (Managed independently of WebLogic server)
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
inventory_loc=[inventory_home]
inst_group=[inventory_group_name]
12.2.1
DM_NAME=''
ORA_HOME=''
NM_NAME=''
NM_PASS=''
selectTemplate('Oracle HTTP Server (Standalone)')
loadTemplates()
cd('SystemComponent/ohs1')
cmo.setName(DM_NAME)
cd('/SecurityConfiguration/base_domain')
cmo.setNodeManagerUsername(NM_NAME)
cmo.setNodeManagerPasswordEncrypted(NM_PASS)
cd('/')
writeDomain(ORA_HOME+'/domains/'+DM_NAME)
closeTemplate()
exit()
12.1.3
DM_NAME=''
ORA_HOME=''
NM_NAME=''
NM_PASS=''
readTemplate(ORA_HOME+'/wlserver/common/templates/wls/base_standalone.jar')
addTemplate(ORA_HOME+'/ohs/common/templates/wls/ohs_standalone_template_12.1.3.jar')
cd('SystemComponent/ohs1')
set('Name',DM_NAME)
cd('/SecurityConfiguration/base_domain')
set('NodeManagerUsername',NM_NAME)
set('NodeManagerPasswordEncrypted',NM_PASS)
cd('/')
writeDomain(ORA_HOME+'/domains/'+DM_NAME)
closeTemplate()
exit()
12.1.2
DM_NAME=''
ORA_HOME=''
NM_NAME=''
NM_PASS=''
readTemplate(ORA_HOME+'/ohs/common/templates/wls/ohs_standalone_template_12.1.2.jar')
cd('SecurityConfiguration/ohs_standalone_domain')
set('NodeManagerUsername',NM_NAME)
set('NodeManagerPasswordEncrypted',NM_PASS)
cd('/')
writeDomain(ORA_HOME+'/user_projects/domains')
closeTemplate()
exit()
nohup ./startNodeManager.sh &
nohup ./startComponent.sh [DOMAIN_NAME] &
[DOMAIN_HOME]/config/fmwconfig/componenets/OHS/[DOMAIN_NAME]
내부 설정 파일 수정.
# NOTE : This is a template to configure mod_weblogic.
LoadModule weblogic_module "${PRODUCT_HOME}/modules/mod_wl_ohs.so"
<IfModule weblogic_module>
WebLogicHost [WLS IP]
WebLogicPort [WLS PORT]
MatchExpression *.jsp
</IfModule>
# <Location /weblogic>
# SetHandler weblogic-handler
# PathTrim /weblogic
# ErrorPage http:/WEBLOGIC_HOME:WEBLOGIC_PORT/
# </Location>