Weblogic-WebServer OHS

kimsw3445·2022년 3월 18일
0

Weblogic

목록 보기
5/13

OHS 설치


의존 패키지 설치

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

silent mode 설치 명령어

./[OHS].bin -silent -responseFile ohs.rsp [-invPtrLoc oraInst.loc]

ohs.rsp

[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

oraInst.loc

inventory_loc=[inventory_home]
inst_group=[inventory_group_name]

ohs 도메인 설치

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] &

mod_wl_ohs.conf

[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>

0개의 댓글