Architecture/WAS
[JEUS] dsa를 이용해 jeusadmin 간편하게 실행하기
GOMSHIKI
2024. 3. 13. 16:55
반응형
jeusadmin 실행 시 여러 옵션과 계정정보를 입력하기 번거로워
dsa 생성해 편리하게 접근하도록 설정할 수 있습니다.
1. 계정 profile 수정
export DOMAIN_NAME=jeus_domain
export DAS_HOSTNAME=`hostname` #DAS : Domain Admin Server
export DAS_PORT=${원하는 포트} # ex. 9736
export DAS_URL=${DAS_HOSTNAME}:${DAS_PORT}
export ENCODE_FILE=${JEUS_HOME}/bin/jeusEncode
2. dsa 작성
- 경로 : $JEUS_HOME/bin
$JEUS_HOME/bin/jesadmin -home $DAS_URL -domain $DOMAIN_NAME -u administrator -cachelogin -f $ENCODE_FILE
3. password 암호화
- 경로 : $JEUS_HOME/bin
> encryption -keypath ${JEUS_HOME}/bin AES {암호화할 패스워드} # ex. administrator
4. jeusEncode 작성
- 경로 : $JEUS_HOME/bin
jeus_domain:administrator ${암호화한 패스워드}
5. dsdown 작성 (adminServer 다운)
$JEUS_HOME/bin/jeusadmin -host $DAS_URL -domain $DOMAIN_NAME -u administrator -cachelogin -f $ENCODE_FILE "local-shutdown -to 120"
6. dsboot 작성(adminServer 기동)
$JEUS_HOME/bin/startDomainAdminServer -domain $DOMAIN_NAME -u administrator -cachelogin -f $ENCODE_FILE
7. nmdown 작성(node manager 기동)
$JEUS_HOME/bin/stopNodeManager -properties $JUES_HOME/nodemanager/jeusnm.xml
8. nmboot작성(node manager 다운)
LOGDATA=`date "+$y$m$d$H$M$S"`
nohup $JEUS_HOME/bin/startNodeManager > $JEUS_LOG_HOME/nodeManager/nm_$LOGDATA.log &
9. msdown(Managed Server 다운)
${JEUS_HOME_절대경로}/bin/jesadmin -host `hostname`:9936 -domain $DOMAIN_NAME -u administrator -cachelogin -f $ENCODE_FILE "local-shutdown -to 120"
10. msboot(Managed Server 기동)
$JEUS_HOME/bin/startManagedServer -dasurl $DAS_URL -domain $DOMAIN_NAME -server server1 -u administrator -cachelogin -f $ENCODE_FILE
11. dsa 실행
> ${JEUS_HOME}/bin/dsa
반응형