Translate

[WebLogic][Linux] 웹로직 콘솔모드 도메인구성 (ver. 10.3.0 ~ 12.1.1)










지원 WebLogic ver: 10.3.0 ~ 12.1.1


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




해당 작업은 구성요소중에 도메인, 어드민서버에 해당된다.





아래의 방법대로 리눅스환경의 웹로직에서 도메인 구성을 했다.
1004lucifer


# 실습환경 웹로직 관련 홈디렉토리 경로
# $BEA_HOME(웹로직 설치디렉토리): /app/weblogic1036/
# $WL_HOME(웹로직 구성요소 디렉토리): /app/weblogic1036/wlserver_10.3/
[weblogic@ae2793daea03 bin]$
[weblogic@ae2793daea03 bin]$ pwd
/app/weblogic1036/wlserver_10.3/common/bin
[weblogic@ae2793daea03 bin]$
[weblogic@ae2793daea03 bin]$
# 시스템언어가 한국어인 경우 설치과정도 한국어로 표시되는데 한국어 사용 시 오류가 발생할 수 있으므로 로케일을 C로 변경한다.
[weblogic@ae2793daea03 bin]$ export LANG=C
[weblogic@ae2793daea03 bin]$
[weblogic@ae2793daea03 bin]$ ll
total 112
-rwxr-x--- 1 weblogic weblogic 22706 Aug  5 10:22 commEnv.sh
-rwxr-x--- 1 weblogic weblogic  2266 Aug  5 10:22 config.sh
-rwxr-x--- 1 weblogic weblogic  2114 Aug  5 10:22 config_builder.sh
-rwxr-x--- 1 weblogic weblogic  2571 Aug  5 10:22 pack.sh
-rwxr-x--- 1 weblogic weblogic  1586 Aug  5 10:22 setPatchEnv.sh
-rwxr-x--- 1 weblogic weblogic  4074 Aug  5 10:22 startDerby.sh
-rwxr-x--- 1 weblogic weblogic  4080 Aug  5 10:22 startManagedWebLogic.sh
-rwxr-x--- 1 weblogic weblogic  1440 Aug  5 10:22 stopDerby.sh
-rwxr-x--- 1 weblogic weblogic  2079 Aug  5 10:22 unpack.sh
-rwxr-x--- 1 weblogic weblogic  3290 Aug  5 10:22 upgrade.sh
-rwxr-x--- 1 weblogic weblogic 31209 Aug  5 10:22 wlscontrol.sh
-rwxr-x--- 1 weblogic weblogic 13740 Aug  5 10:21 wlsifconfig.sh
-rwxr-x--- 1 weblogic weblogic   776 Aug  5 10:22 wlst.sh
[weblogic@ae2793daea03 bin]$
[weblogic@ae2793daea03 bin]$
[weblogic@ae2793daea03 bin]$
[weblogic@ae2793daea03 bin]$
# 도메인구성 wizard (쉘) 실행
# 쉘 위치는 $WL_HOME/common/bin/config.sh
[weblogic@ae2793daea03 bin]$ ./config.sh
Unable to instantiate GUI, defaulting to console mode.





<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:
--------

Choose between creating and extending a domain. Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain.

 ->1|Create a new WebLogic domain       # 신규도메인구성
    |    Create a WebLogic domain in your projects directory.

   2|Extend an existing WebLogic domain  # 기존도메인구성
    |    Use this option to add new components to an existing domain and modify     |configuration settings.





Enter index number to select OR [Exit][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates.

 ->1|Choose Weblogic Platform components # 웹로직 플랫폼 컴포넌트
    |    You can choose the Weblogic component(s) that you want supported in
    |your domain.
1004lucifer
   2|Choose custom template                     # 커스텀 컴포넌트
    |    Choose this option if you want to use an existing  template. This
    |could be a custom created template using the Template Builder.




# 커스텀 컴포넌트를 설치할 계획이 없으므로 그냥 엔터입력 Enter index number to select OR [Exit][Previous][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
-------------------------------



    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]


# 가능한 템플릿 모듈 선택 x 표시가 있는 모듈이 선택된 모듈
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |



# 도메인 이름 입력 후 엔터
Enter value for "Name" OR [Exit][Previous][Next]> 1004lucifer_domain





<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |       Value        |
   _|________|____________________|
   1| *Name: | 1004lucifer_domain |

Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------

    "Target Location" = [Enter new value or use default
"/app/weblogic1036/user_projects/domains"]



# 도메인 구성위치 입력 후 엔터
Enter new Target Location OR [Exit][Previous][Next]> /app/weblogic1036/domains




# 웹로직 인증정보 구성
# (서버의 기동과 어드민접근 시 필요)
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"



# 이름을 변경하기 위해 1번 선택 후 엔터
Enter option number to select OR [Exit][Previous][Next]> 1





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |



# 변경할 이름 입력 후 엔터
Enter value for "Name" OR [Exit][Previous][Next]> 1004lucifer





<------------------- Fusion Middleware Configuration Wizard ------------------>
1004lucifer
Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |               1004lucifer               |
   2|     *User password:     |                 ******                  |
   3| *Confirm user password: |                 ******                  |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes



# 패스워드 변경을 위해 2번 선택 후 엔터
Enter option number to select OR [Exit][Previous][Next]> 2





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    "*User password:" = [******]



# 패스워드 입력 후 엔터 (8글자 이상 입력을 해야 함)
Enter new *User password: OR [Exit][Reset][Accept]> 1234qwer





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |               1004lucifer               |
   2|     *User password:     |                ********                 |
   3| *Confirm user password: |                 ******                  |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes



# 패스워드 확인 입력위해 3번 입력 후 엔터
Enter option number to select OR [Exit][Previous][Next]> 3





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    "*Confirm user password:" = [******]



# 기존 입력한 패스워드와 동일하게 입력 후 엔터
Enter new *Confirm user password: OR [Exit][Reset][Accept]> 1234qwer





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------
1004lucifer
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |               1004lucifer               |
   2|     *User password:     |                ********                 |
   3| *Confirm user password: |                ********                 |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain.

 ->1|Development Mode  # 개발모드

   2|Production Mode      # 운영모드




Enter index number to select OR [Exit][Previous][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

 ->1|Sun SDK 1.6.0_45 @ /app/jdk1.6.0_45
   2|Other Java SDK



# 자바가 설치되어 있다면 자동으로 선택이 된다.
Enter index number to select OR [Exit][Previous][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

   1|Administration Server [ ]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]


# Administration Server 선택을 위해 1 입력 후 엔터
Enter index number to select OR [Exit][Previous][Next]> 1





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

   1|Administration Server [x]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]


# Administration Server 외의 항목은 어드민콘솔에서 추가/변경이 가능
Enter index number to select OR [Exit][Previous][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure the Administration Server:
------------------------------------

Each WebLogic Server domain must have one Administration Server. The
Administration Server is used to perform administrative tasks.

    |       Name       |        Value        |
   _|__________________|_____________________|
   1|      *Name:      |     AdminServer     |
   2| *Listen address: | All Local Addresses |
   3|   Listen port:   |        7001         |
   4| SSL listen port: |         N/A         |
   5|   SSL enabled:   |        false        |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"



# Administration Server 설정(필요 시 변경)
Enter option number to select OR [Exit][Previous][Next]> 엔터입력





<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****


[weblogic@ae2793daea03 bin]$







도메인 기동 및 어드민콘솔 접속여부 확인


# 실습환경 웹로직 관련 홈디렉토리 경로
# $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/startWebLogic.sh
[weblogic@ae2793daea03 bin]$ ./startWebLogic.sh
.
.
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
.1004lucifer
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=AdminServer -Djava.security.policy=/app/weblogic1036/wlserver_10.3/server/lib/weblogic.policy  -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=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/app/weblogic1036/patch_wls1036/profiles/default/sysext_manifest_classpath  weblogic.Server
<Aug 6, 2018 1:33:12 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 1:33:12 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 1:33:12 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 1:33:13 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 1:33:13 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Aug 6, 2018 1:33:13 PM UTC> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Aug 6, 2018 1:33:13 PM UTC> <Notice> <LoggingService> <BEA-320400> <The log file /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Aug 6, 2018 1:33:13 PM UTC> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/AdminServer.log00001. Log messages will continue to be logged in /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/AdminServer.log.>
<Aug 6, 2018 1:33:13 PM UTC> <Notice> <Log Management> <BEA-170019> <The server log file /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<Aug 6, 2018 1:33:15 PM UTC> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Aug 6, 2018 1:33:16 PM UTC> <Notice> <LoggingService> <BEA-320400> <The log file /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Aug 6, 2018 1:33:16 PM UTC> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/access.log00001. Log messages will continue to be logged in /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/access.log.>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <LoggingService> <BEA-320400> <The log file /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/1004lucifer_domain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/1004lucifer_domain.log00001. Log messages will continue to be logged in /app/weblogic1036/domains/1004lucifer_domain/servers/AdminServer/logs/1004lucifer_domain.log.>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.17.0.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "1004lucifer_domain" running in Development Mode>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Aug 6, 2018 1:33:17 PM UTC> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
# 정상 기동여부 로그 확인






브라우저에서 아래의 링크로 접속
 - http://{domain}:{port}/console
   (ex: http://localhost:7001/console)






웹로직 인증정보 구성 시 입력했던 값을 넣고 로그인하면 아래와 같이 화면이 보여진다.

실습 ID/PW
 - 1004lucifer / 1234qwer







참고서적

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

댓글

  1. 웹로직 정상적으로 동작하는데 console화면이 안나오는건 왜일까요 ㅠㅠ

    답글삭제
    답글
    1. 웹 어드민콘솔 말씀하시는것 같은데..
      포트가 7001로 셋팅되어 있는지여부, 포트가 오픈되어 있는지 여부를 먼저 확인을 한번 해보셔야 할것 같네요.

      삭제

댓글 쓰기