Technical posts/Web & WAS

webtier 12c/ OHS 12c OHS 컴포넌트 추가, 인스턴스 추가

ODB 2017. 3. 15. 18:37

oracle http server 12c component add


한 도메인에 여러개의 OHS 인스턴스를  추가하고 싶다..


난 웹서버를 많이 쓰니까..


domain home을 가서 config폴더에 config.xml을 열어보자


[webtier@centos6 domains]$ cd base_domain

[webtier@centos6 base_domain]$ ls

auditlogs  bin  config  init-info  nodemanager  resources  security  servers  system_components

[webtier@centos6 base_domain]$ cd config

[webtier@centos6 config]$ ls

backup_config.xml  config.xml  fmwconfig  nodemanager

[webtier@centos6 config]$ cat config.xml

<?xml version="1.0" encoding="UTF-8"?>

<domain xsi:schemaLocation="http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/weblogic/1.0/domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd" xmlns="http://xmlns.oracle.com/weblogic/domain" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <name>base_domain</name>

  <domain-version>12.2.1.2.0</domain-version>

  <security-configuration>

    <name>base_domain</name>

    <credential-encrypted>{AES}9g7383lFY0W3de/B7CjTydnwDWzM0zzSqoV93grxl2eow0C529+uh/+BlUK8FX5aBDtwOyvtkrI0f5kz7dviu8BtTgPryIVyzwGmPtyby4c4lAnPBlrqZZNfoGyFjKWd</credential-encrypted>

    <node-manager-username>webtier</node-manager-username>

    <node-manager-password-encrypted>{AES}JF0X8ehpfvZIuo7ln2w8Hk28yS2JY2NxUAud7djky3U=</node-manager-password-encrypted>

  </security-configuration>

  <server>

    <name>AdminServer</name>

    <listen-address/>

  </server>

  <configuration-version>12.2.1.2.0</configuration-version>

  <machine>

    <name>localmachine</name>

    <node-manager>

      <name>localmachine</name>

      <listen-address>localhost</listen-address>

      <password-encrypted>{AES}+Td9EEauK/TJQ/4jrpTAPCG0lpsS1NVE9HP7xRxH+mA=</password-encrypted>

    </node-manager>

  </machine>

  <admin-server-name>AdminServer</admin-server-name>

  <system-component>

    <machine>localmachine</machine>

    <component-type>OHS</component-type>

    <name>webtier2</name>

  </system-component>

  <system-component>

    <machine>localmachine</machine>

    <name>webtier1</name>

    <component-type>OHS</component-type>

    <system-component-start/>

  </system-component>

  <system-component>

    <machine>localmachine</machine>

    <name>webtier3</name>

    <component-type>OHS</component-type>

    <system-component-start/>

  </system-component>

</domain>


 


필자가 최초로 만든 인스턴스가 webtier2 이고

webtier1, webtier3을 추가로 생성해 주었습니다


생성만 하면 될까요? 아니요


/webtier/domains/base_domain/config/fmwconfig/components/OHS/instances

$DOMAIN_HOME/config/fmwconfig/components/OHS/instances 에 
먼저 생성되어있는 인스턴스의 설정파일을 그대로 복사해서 생성하고
webtier2 를 webtie1, webtier3으로 복사해두고

admin.conf
httpd.conf
ssl.conf

에 listen 포트가 겹치지 않도록 잘 변경하고

sh startComponent.sh 인스턴스명
으로 구동하면? 잘 올라감


"이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."