1. 기동 쉘(Unix)

< startA.sh> 

#!/bin/sh

cd /home/wls/domains/testDomain
DATEPRE=`date +%Y%m%d%H%M%S`
if [[ -a ADminServer.log ]] then
     mv AdminServer.log ./logs/AdminServer/$DATEPRE.log
fi
nohup ./startWeblogic.sh > AdminServer.log & 2>&1


 1) cd ~ [도메인 경로] 입력
 2) logs 디렉토리 생성


2. 기동 스크립트(Windows)
<startA.cmd>

@ECHO OFF
 cd C:\WAS\Weblogic\user_projects\domains\testDomain
set LOG_DIR=C:\WAS\Weblogic\user_projects\domains\testDomain\logs
set DATEPRE=%date:~0,10%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%
cd %LOG_DIR%
if EXIT %LOG_DIR%\AdminServer.log ren AdminServer.log
AdminServer .%DATEPRE%.log
cd C:\WAS\Weblogic\user_projects\domains\testDomain
rem ECHO "웹로직 어드민 서버를 start합니다."
start /B startWebLogic.cmd > %LOG_DIR%\AdminServer.log 2>&1

 

+ Recent posts