Translate

2018년 8월 7일 화요일

[WebLogic][Admin Console] 매니지드 서버 생성방법 (ver. 9.0 이상)










지원 WebLogic ver: 9.0 ~


실습환경
 - OS: OracleLinux 5
 - WebLogic ver: 10.3.6


해당 작업은 구성요소중 매니지드서버에 해당된다.






Administration Console 에서 아래와 같이 매니지드 서버 추가를 할 수 있다.


1. 어드민 콘솔에서 '서버'를 선택






2. '새로만들기' 버튼 선택 (Product Mode인경우 변경센터의 모습이 캡쳐와 다름)






3. 서버이름, 서버수신포트 입력 후 '다음' 클릭






4. 서버설정을 확인 후 '완료' 버튼 클릭






5. 리스트에 생성된 매니지드 서버가 있는것을 볼 수 있다.






설정파일 확인


# 실습환경 웹로직 관련 홈디렉토리 경로
# $DOMAIN_HOME(도메인 디렉토리): /app/weblogic1036/domains/1004lucifer_domain
[weblogic@ae2793daea03 config]$
[weblogic@ae2793daea03 config]$ pwd
/app/weblogic1036/domains/1004lucifer_domain/config
[weblogic@ae2793daea03 config]$
# 설정파일 위치: $DOMAIN_HOME/config/config.xml
[weblogic@ae2793daea03 config]$ cat config.xml
<?xml version='1.0' encoding='UTF-8'?>
<domain 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" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator/1.0/passwordvalidator.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/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd">
  <name>1004lucifer_domain</name>
  <domain-version>10.3.6.0</domain-version>
  <security-configuration>
    <name>1004lucifer_domain</name>
    <realm>
      <sec:authentication-provider xsi:type="wls:default-authenticatorType"></sec:authentication-provider>
      <sec:authentication-provider xsi:type="wls:default-identity-asserterType">
        <sec:active-type>AuthenticatedUser</sec:active-type>
      </sec:authentication-provider>
      <sec:role-mapper xmlns:xac="http://xmlns.oracle.com/weblogic/security/xacml" xsi:type="xac:xacml-role-mapperType"></sec:role-mapper>
      <sec:authorizer xmlns:xac="http://xmlns.oracle.com/weblogic/security/xacml" xsi:type="xac:xacml-authorizerType"></sec:authorizer>
      <sec:adjudicator xsi:type="wls:default-adjudicatorType"></sec:adjudicator>
      <sec:credential-mapper xsi:type="wls:default-credential-mapperType"></sec:credential-mapper>
      <sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"></sec:cert-path-provider>
      <sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>
      <sec:name>myrealm</sec:name>
      <sec:password-validator xmlns:pas="http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator" xsi:type="pas:system-password-validatorType">
        <sec:name>SystemPasswordValidator</sec:name>
        <pas:min-password-length>8</pas:min-password-length>
        <pas:min-numeric-or-special-characters>1</pas:min-numeric-or-special-characters>
      </sec:password-validator>
    </realm>
    <default-realm>myrealm</default-realm>
    <credential-encrypted>{AES}HP+okYGy7BjsKLSO/79REYs0qfyAV4TviOD+YeUmAWpzcUysmuzYWYuVuduiZx9bd6PB3scwmFmqSw3uu6U7CBmkIJR9/1LOYa5sQifm662ENvb6gLZ+9UftlrcvrscK</credential-encrypted>
    <node-manager-username>1004lucifer</node-manager-username>
    <node-manager-password-encrypted>{AES}WKUKY4rA6tH5xe6wreWAKhSSCXu6tCYaCEGjw71g7sk=</node-manager-password-encrypted>
  </security-configuration>
  <server>
    <name>AdminServer</name>
    <listen-address></listen-address>
  </server>
# 추가한 서버의 설정이 들어있는 것을 확인할 수 있다.
  <server>
    <name>ManagedServer01</name>
    <listen-port>9001</listen-port>
    <web-server>
      <web-server-log>
        <number-of-files-limited>false</number-of-files-limited>
      </web-server-log>
    </web-server>
    <listen-address></listen-address>
  </server>
  <embedded-ldap>
    <name>1004lucifer_domain</name>
    <credential-encrypted>{AES}yoGRWMZ+84Z9ZU+BTB6pgOsUhv6zjDEpOaGGTcbxu8wot0eRUXz3E9OUxfOHrODu</credential-encrypted>
  </embedded-ldap>
  <configuration-version>10.3.6.0</configuration-version>
  <admin-server-name>AdminServer</admin-server-name>
</domain>
[weblogic@ae2793daea03 config]$



알아야 할 정보
 - 매니지드 서버는 어드민 서버가 관리하는 구성 중 하나
 - 매니지드 서버가 기동되려면 어드민 서버에서 기동정보를 가져와야 한다.
 - 매니지드 서버가 기동되기 위해서 어드민 서버가 기동되어 있어야 한다.





매니지드 서버 기동


기동명령어 사용방법은 아래와 같다.
- $ startManagerdWebLogic.sh [Managed_Server_Name] [Admin_url)


# 실습환경 웹로직 관련 홈디렉토리 경로
# $DOMAIN_HOME(도메인 디렉토리): /app/weblogic1036/domains/1004lucifer_domain
[weblogic@ae2793daea03 bin]$
[weblogic@ae2793daea03 bin]$ pwd
/app/weblogic1036/domains/1004lucifer_domain/bin
[weblogic@ae2793daea03 bin]$
[weblogic@ae2793daea03 bin]$
# 매니지드 실행 쉘파일 위치: $DOMAIN_HOME/bin/startManagedWebLogic.sh
[weblogic@ae2793daea03 bin]$ ./startManagedWebLogic.sh ManagedServer01 t3://localhost:7001
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=256m
.
WLS Start Mode=Development
.
CLASSPATH=/app/weblogic1036/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/app/jdk1.6.0_45/lib/tools.jar:/app/weblogic1036/wlserver_10.3/server/lib/weblogic_sp.jar:/app/weblogic1036/wlserver_10.3/server/lib/weblogic.jar:/app/weblogic1036/modules/features/weblogic.server.modules_10.3.6.0.jar:/app/weblogic1036/wlserver_10.3/server/lib/webservices.jar:/app/weblogic1036/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/app/weblogic1036/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/app/weblogic1036/wlserver_10.3/common/derby/lib/derbyclient.jar:/app/weblogic1036/wlserver_10.3/server/lib/xqrl.jar
.
PATH=/app/weblogic1036/wlserver_10.3/server/bin:/app/weblogic1036/modules/org.apache.ant_1.7.1/bin:/app/jdk1.6.0_45/jre/bin:/app/jdk1.6.0_45/bin:/usr/local/bin:/bin:/usr/bin:/home/weblogic/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
Starting WLS with line:
/app/jdk1.6.0_45/bin/java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=256m -Dweblogic.Name=ManagedServer01 -Djava.security.policy=/app/weblogic1036/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.security.SSL.trustedCAKeyStore=/app/weblogic1036/wlserver_10.3/server/lib/cacerts  -Xverify:none  -da -Dplatform.home=/app/weblogic1036/wlserver_10.3 -Dwls.home=/app/weblogic1036/wlserver_10.3/server -Dweblogic.home=/app/weblogic1036/wlserver_10.3/server   -Dweblogic.management.discover=false -Dweblogic.management.server=t3://localhost:7001  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/app/weblogic1036/patch_wls1036/profiles/default/sysext_manifest_classpath  weblogic.Server
<Aug 6, 2018 2:56:27 PM UTC> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Aug 6, 2018 2:56:28 PM UTC> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<Aug 6, 2018 2:56:28 PM UTC> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.45-b01 from Sun Microsystems Inc.>
<Aug 6, 2018 2:56:28 PM UTC> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:1004lucifer
Enter password to boot WebLogic server:
<Aug 6, 2018 2:56:45 PM UTC> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 >
<Aug 6, 2018 2:56:46 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Aug 6, 2018 2:56:46 PM UTC> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Aug 6, 2018 2:56:46 PM UTC> <Notice> <Log Management> <BEA-170019> <The server log file /app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.log is opened. All server side log events will be written to this file.>
<Aug 6, 2018 2:56:48 PM UTC> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Aug 6, 2018 2:56:49 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<Aug 6, 2018 2:56:49 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Aug 6, 2018 2:56:50 PM UTC> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<Aug 6, 2018 2:56:50 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Aug 6, 2018 2:56:50 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Aug 6, 2018 2:56:50 PM UTC> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.17.0.2:9001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 6, 2018 2:56:50 PM UTC> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:9001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 6, 2018 2:56:50 PM UTC> <Notice> <WebLogicServer> <BEA-000332> <Started WebLogic Managed Server "ManagedServer01" for domain "1004lucifer_domain" running in Development Mode>
<Aug 6, 2018 2:56:51 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Aug 6, 2018 2:56:51 PM UTC> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>






정상적으로 기동 시 어드민콘솔 화면에서 기동여부 확인이 가능하다.






참고서적

설치에서 트러블슈팅까지 웹로직의 모든 것 WebLogic Expert - 10점
이규석.김민수 지음/에이콘출판


댓글 없음 :

댓글 쓰기