WAS/WebLogic Server2009. 1. 5. 13:11

WebLogic ServerWindows Service로 등록하기

 

웹로직 서버를 windows service로 등록하게 되면 O.S가 구동되면서 자동적으로 웹로직 서버를 구동 시킬 수 있게 됩니다.

Windows RegistryHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 위치에 생성

 

1.     Windows Service 등록 Script 만들기

A.      DOMAIN_HOME 디렉토리에 text파일을 생성합니다.
(
이 문서에서는 svc_서버이름.cmd 로 생성하겠습니다)

B.       text파일에 아래와 같은 batch commands를 작성합니다. (필수)

                      i.              SETLOCAL è batch command의 시작을 알림

                    ii.              set DOMAIN_NAME=domain-name è Domain 이름에 대한 설정

                  iii.              set USERDOMAIN_HOME=absolute-pathname è Domain 디렉토리에 대한 절대경로

                   iv.              set SERVER_NAME=server-name è NT service에 등록하기 위한 server

C.       text파일에 아래와 같은 batch commands를 작성합니다. (옵션)

                      i.              set WLS_USER=username

                    ii.              set WLS_PW=password

                  iii.              set PRODUCTION_MODE=[true]

                   iv.              set JAVA_OPTIONS=java-options

                     v.              set JAVA_VM=-JVM-mode

                   vi.              set MEM_ARGS=[-XmsNumberm] [-XmxNumberm]

D.       text파일에 아래와 같은 batch commands를 작성합니다. (필수)

                      i.              call "WL_HOME\server\bin\installSvc.cmd" è 실질적으로 NT service에 등록하기 위한 스크립트 (WL_HOME은 절대경로를 입력해야 합니다)

                    ii.              ENDLOCAL è batch command의 끝을 알림

E.       text 파일을 .cmd 확장자로 저장합니다. (이 문서에서는 svc_서벼이름.cmd)

 

2.     Windows Service 삭제 Script 만들기

A.      DOMAIN_HOME 디렉토리에 text파일을 생성합니다.
(
이 문서에서는 rm_svc_서버이름.cmd 로 생성하겠습니다)

B.       text파일에 아래와 같은 batch commands를 작성합니다. (필수)

                      i.              SETLOCAL

                    ii.              set DOMAIN_NAME=domain-name

                  iii.              set SERVER_NAME=server-name

                   iv.              call "WL_HOME\server\bin\uninstallSvc.cmd"

                     v.              ENDLOCAL

C.       text 파일을 .cmd 확장자로 저장합니다. (이 문서에서는 rm_svc_서벼이름.cmd)

 

3.     Windows Service Admin Server 구동 후 Managed Server 구동하기

A.      WL_HOME\server\bin\installSvc.cmd 파일을 DOMAIN_HOME 디렉토리에 복사합니다.
(
이 문서에서는 installSvc_서버이름.cmd 로 사용합니다)
è Admin Server 용도

B.       만약 windows service에 이미 Admin Server가 등록되어 있다면 2번의 Windows Service 삭제 스크립트를 만들어 이미 등록된 service를 삭제하도록 합니다.

C.       installSvc_서버이름.cmd 파일을 text editor로 열어 편집할 수 있도록 합니다.

D.       -delay:delay_milliseconds 옵션을 추가합니다. (2분의 delay를 적용한 예)
-delay
Windows SCM(Service Control Manager) service status

SERVER_START_PENDING
에서 STARTED로 바꾸기 전에 wait하는 시간(millisecond 단위)으로
admin server
start하는데 필요한 시간을 설정하면 됩니다.
"%WL_HOME%\server\bin\beasvc" -install
-svcname:"%DOMAIN_NAME%_%SERVER_NAME%"
-delay:120000
-javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"
-extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"
-cmdline:%CMDLINE%

"%WL_HOME%\server\bin\beasvc" -install

-svcname:"%DOMAIN_NAME%_%SERVER_NAME%"

-delay:120000

-javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"

-extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"

-cmdline:%CMDLINE%

 

E.       1번에서 만든 Windows Service 등록 Script를 이용하여 Admin Server windows service로 등록합니다. (1-D-i installSvc.cmd 을 위에서 작업한 installSvc_서버명.cmd 로 변경합니다)

F.       WL_HOME\server\bin\installSvc.cmd 파일을 DOMAIN_HOME 디렉토리에 복사합니다.
(
이 문서에서는 installSvc_서버이름.cmd 로 사용합니다)
è Managed Server 용도

G.      installSvc_서버이름.cmd 파일을 text editor로 열어 편집할 수 있도록 합니다.

H.       -depend:Administration-Server-service-name 옵션을 추가합니다.
Managed Server
Admin Server configuration 정보를 받아와야 하므로 Admin Server가 구동되는 서비스이름을 depend 하게 됩니다
.
-depend
Windows SCM admin server Windows service status STARTED가 될 때까지 wait하므로 managed server에 설정하면 됩니다
.
"%WL_HOME%\server\bin\beasvc" -install
-svcname:"%DOMAIN_NAME%_%SERVER_NAME%"
-depend:"beasvc base_domain_AdminServer"
-javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"
-extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"
-cmdline:%CMDLINE%

"%WL_HOME%\server\bin\beasvc" -install

-svcname:"%DOMAIN_NAME%_%SERVER_NAME%"

-depend:"beasvc base_domain_AdminServer"

-javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"

-extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"

-cmdline:%CMDLINE%

 

I.         1번에서 만든 Windows Service 등록 Script를 이용하여 Admin Server windows service로 등록합니다. (1-D-i installSvc.cmd 을 위에서 작업한 installSvc_서버명.cmd 로 변경합니다)

 

4.     Windows Service 등록에 대한 검증

A.      WL_HOME\server\bin\beasvc debug service_name

B.       현재 구성된 웹로직 서비스를 직접 서비스로 구동하는 것이 아닌 command에서 검증하면서 cmd에서 구동하여 확인하는 방식이다.

 

5.     서버 종료에 대한 방법은 종료 script를 만들어서 해당 script로 종료 하도록 한다.
@ECHO OFF
SETLOCAL
call "%DOMAIN_NAME%\bin\setDomainEnv.cmd"
echo Stopping Weblogic Server...
%JAVA_HOME%\bin\java -cp %WEBLOGIC_CLASSPATH% weblogic.Admin
FORCESHUTDOWN -url t3://localhost:7001 -username weblogic -password weblogic
AdminServer  2>&1
echo Done
ENDLOCAL

@ECHO OFF

SETLOCAL

call "%DOMAIN_NAME%\bin\setDomainEnv.cmd"

echo Stopping Weblogic Server...

%JAVA_HOME%\bin\java -cp %WEBLOGIC_CLASSPATH% weblogic.Admin

FORCESHUTDOWN -url t3://localhost:7001 -username weblogic -password weblogic

AdminServer  2>&1

echo Done

ENDLOCAL

 

windows service에서 Admin Server를 종료하게 되면 Managed Server에서 -depend하고 있기때문에 Managed Server가 함께 종료됩니다. 이와 같은 이유로 인해 Admin Server를 종료하려면 별도의 script로 종료하도록 합니다.

WebLogic Server 10 MP1 에서 Test를 진행 함

Test를 진행하며 사용했던 Script 첨부


참고
URL : http://e-docs.bea.com/wls/docs100/server_start/winservice.html

Posted by 달콤한녀석

댓글을 달아 주세요

  1. 이전 댓글 더보기
  2. I've been cut off <a href=" http://www.tnaflix.com/profile/sikudujica ">1o1 sex poistions</a> The wife would fling a Hairy Fit if I suggested this to her... I love this and steve are two lucky fellas.... I would love to try this though.
    <a href=" http://www.tnaflix.com/profile/gudytynul ">sex xxx of 70</a> black dude reminds me of my baby not forcing it at all, like just do whatever to em ababy but white dude has to be special

    2013.01.10 08:06 [ ADDR : EDIT/ DEL : REPLY ]
  3. A few months <a href=" http://www.tnaflix.com/profile/enuyfahi ">12yo sexy pic</a> she is sexy as hell but you'd think they are having sex at their parents house with them sleeping next door by not making any noise. I'm not looking for that fake moaning and crap but come on, he must be doing something wrong
    <a href=" http://www.tnaflix.com/profile/ficuqyjuqym ">13 yo lol pussy</a> Love the facesitting segment, way better than watching her suck a cock, as for the stethoscope incident, pornstuds don't need brains, just a hard cock, no oscars given out in this profession

    2013.01.10 08:06 [ ADDR : EDIT/ DEL : REPLY ]
  4. Would you like a receipt? <a href=" http://www.tnaflix.com/profile/erylubonybe ">ls images loli</a> I dont get why girls and guys think going down on the girl is nasty now. I think the best-tasting shit on the planet is pussy.
    <a href=" http://www.tnaflix.com/profile/acuceariu ">lolicon child extreme</a> Tawny kept back for good reason .. amazing blowjob sucking him solid .. dude gets treatment as he watches his cock slide between her perky tits .. Tawny then goes for ride his cock growing harder inside her .. looking adorable as she bends over desk dude amps it up as her twat aches for more .. Tawny begs for harder fucking and he opts for her ass which is so tight he pulls out and cums over her gorgeous face

    2013.01.10 09:07 [ ADDR : EDIT/ DEL : REPLY ]
  5. What do you do for a living? <a href=" http://www.tnaflix.com/profile/iryonyceon ">teen nudist lolite pictures</a> My god she is amazing. She deserves a much bigger dick to ride on. Still nice movie though, love her riding.
    <a href=" http://www.tnaflix.com/profile/ocyetygehy ">rompl lolits</a> Look at them , how happy they are, and if you can't get inspiration from them , you're just not here .

    2013.01.10 09:07 [ ADDR : EDIT/ DEL : REPLY ]
  6. I can't stand football <a href=" http://www.tnaflix.com/profile/hyoqajyno ">forbidden loli nude</a> wow, im straight as an arrow, but damn i would take your cock up my ass anyday, and suck you dry. you name it, when and where! you are the sexiest thing on this planet
    <a href=" http://www.tnaflix.com/profile/ocyetygehy ">lolicon hentai videos</a> This is a really short version of this scene between BellaDonna and Lex. There's a lot more to this really hot scene. Lawd knows bella can take some DICK! I love dat girl.

    2013.01.10 09:07 [ ADDR : EDIT/ DEL : REPLY ]
  7. I came here to work <a href=" http://www.tnaflix.com/profile/reduyliby ">loli pics angels</a> Hell, they got a whole camera crew in there! I can barely fit in my damn Pokemon ball! And I don't even have cable, like THAT!!! Cool as hell, though! I'm definitely upgrading to a basketball!!!!
    <a href=" http://www.tnaflix.com/profile/iryonyceon ">young underage russian lolia</a> I love a woman that has hairy armpits. I would love to see more vids of women with hairy armpits. Hairy pussy and hairy armpits are the best.

    2013.01.10 09:07 [ ADDR : EDIT/ DEL : REPLY ]
  8. I do some voluntary work <a href=" http://www.tnaflix.com/profile/erylubonybe ">little loli pedo</a> jimmy sherwood you speak the truth. she looked fantastic when she had the extra weight. I'm so glad she made the transition to anal. For a while she wasn't doing it and then she finally gave in.
    <a href=" http://www.tnaflix.com/profile/acuceariu ">great gallery lolicon</a> She was in on it this whole time, the wink gave it away! Foreign girls are alot better than American girls. She's perfick!

    2013.01.10 09:08 [ ADDR : EDIT/ DEL : REPLY ]
  9. Enter your PIN <a href=" http://www.tnaflix.com/profile/ypoetefe ">15yo pregnant picture</a> So beautifully intimate. This makes me wonder why I watch all those anal banging movies. This is way more beautiful.
    <a href=" http://www.tnaflix.com/profile/caqokiroraj ">13 yr nudist</a> i'd tilt my head back and swallow all that cock, put my tongue all over it. public sex turns me on so much. face fuckin is hawt! that doggy style looked so fuckin' good. mmm...

    2013.01.10 10:46 [ ADDR : EDIT/ DEL : REPLY ]
  10. Which year are you in? <a href=" http://www.tnaflix.com/profile/gyjylytyfo ">14 german nude porn</a> What the fuck is that ugly four eyed creature doing with her.She must have been paid well, I doubt sex came once.
    <a href=" http://www.tnaflix.com/profile/airejysede ">16 girl naked pic</a> Some very nice close up cunt action in this clip! Girls are natural and look like they're enjoying it too!

    2013.01.10 10:46 [ ADDR : EDIT/ DEL : REPLY ]
  11. I'm training to be an engineer <a href=" http://www.tnaflix.com/profile/joeutupyg ">1 2 rope</a> mmmm nice, very nice girl and guy. I would like to join and play together with this couple. Her tits and pusy and face turns me on. His body and dick and balls turns me on to.. She know what women can do for men with nice fingers with nice nails. He know how to be good fucker and how to use dick, perfect lovers. If I can join to this couple I wanna suck this dick with this girl together and get final in my throat.
    <a href=" http://www.tnaflix.com/profile/ysyjeqabeni ">cigworld 14yo</a> this is some of the best mouth fucking I've seen. And of course I love the ass on this girl - really nice. She has great control of her asshole. Very nice.

    2013.01.10 10:46 [ ADDR : EDIT/ DEL : REPLY ]
  12. I'm self-employed <a href=" http://www.tnaflix.com/profile/joeutupyg ">14 y.o. girl porn</a> Every bit of it was nice, he fucked her in all possible ways, a fine hairy pussy, clean asshole, worth holding boobs
    <a href=" http://www.tnaflix.com/profile/gyjylytyfo ">4 on one porn</a> i need to give these frogs my number, id gladly fuck her if they have to settle for baby dick over there

    2013.01.10 10:46 [ ADDR : EDIT/ DEL : REPLY ]
  13. We used to work together <a href=" http://www.tnaflix.com/profile/ypoetefe ">porno 70s gallery</a> i love the bad italian church sounding music, and dubbing... however I love it since EVERYONE NEEDS A BIG GOCK IN THEIR HOLE!
    <a href=" http://www.tnaflix.com/profile/gyjylytyfo ">5x pvc lingerie</a> I seen this girl a good while back on loads of indian desi sites but never got a name i even posted pics on forums but no one knows her name but dam she sexy first vid i seen thanks

    2013.01.10 10:46 [ ADDR : EDIT/ DEL : REPLY ]
  14. zsrovsbkbmp, <a href="http://cash-publisher.com/">Slots</a>, tEXvyMt, [url=http://cash-publisher.com/]Cleopatra slots[/url], FmACrfN, http://cash-publisher.com/ Slots, owXHruC.

    2013.02.08 16:30 [ ADDR : EDIT/ DEL : REPLY ]
  15. felubsbkbmp, <a href="http://bonussurcasinoenligne.com/">Jeux de casino</a>, BmutQMb, [url=http://bonussurcasinoenligne.com/]Au nouveau casino[/url], KpnnRWi, http://bonussurcasinoenligne.com/ Nouveau casino paris, YwZqTVL, <a href="http://debtreliefnotes.com/">Government credit card debt relief</a>, vAYnaHN, [url=http://debtreliefnotes.com/]Debt relief agency[/url], tDGElXI, http://debtreliefnotes.com/ Mortgage debt relief act, IbaHGbA, <a href="http://recommendedelectroniccigarettes.com/">Us manufactured electronic cigarettes</a>, SSXEjBc, [url=http://recommendedelectroniccigarettes.com/]Electronic cigarettes companies[/url], vZxzQFI, http://recommendedelectroniccigarettes.com/ Vapor electronic cigarettes, jmtDAqE, <a href="http://electroniccigaretteopinions.com/">Electronic Cigarette</a>, eVBClYt, [url=http://electroniccigaretteopinions.com/]Electronic cigarette usa[/url], RMGRMcs, http://electroniccigaretteopinions.com/ Ultra slim electronic cigarette, QXTrTHM, <a href="http://debtconsolidationtutorial.com/">Unsecured debt consolidation loans 35000 loan</a>, KeqQqtX, [url=http://debtconsolidationtutorial.com/]Loan refinance debt consolidation[/url], OpqRpkt, http://debtconsolidationtutorial.com/ Debt Consolidation, jPfJeuS, <a href="http://electroniccigaretteboutique.com/">Volcano electronic cigarette</a>, kJxDOWp, [url=http://electroniccigaretteboutique.com/]Electronic Cigarette[/url], rDGlXyS, http://electroniccigaretteboutique.com/ No 7 electronic cigarette, rMnVSef.

    2013.02.08 16:43 [ ADDR : EDIT/ DEL : REPLY ]
  16. zvoqcsbkbmp, <a href="http://www.kamagraonlineblog.com/">Kamagra</a>, mZgxFbO, [url=http://www.kamagraonlineblog.com/]Kamagra 100mg[/url], ORzCpMw, http://www.kamagraonlineblog.com/ Kamagra Jelly, NJeMcNe, <a href="http://turrisfortis.com/">Buy Levitra</a>, AmbUwag, [url=http://turrisfortis.com/]Levitra Online[/url], PpKcyqz, http://turrisfortis.com/ Buy Levitra, ezCAkHs, <a href="http://best-pet-tips.com/">Red vs blue 32</a>, dHcseaz, [url=http://best-pet-tips.com/]32red[/url], XTBEqhA, http://best-pet-tips.com/ Red sea 32 gal saltwater tank, fXKRbRw, <a href="http://www.priligyzone.com/">7drugs priligy</a>, IPlKdWQ, [url=http://www.priligyzone.com/]Priligy kostar[/url], JFDZNmb, http://www.priligyzone.com/ Priligy, GdBcSyI, <a href="http://www.tadalafilearn.com/">Tadalafil canada</a>, RInOEEM, [url=http://www.tadalafilearn.com/]Tadalafil[/url], qvgYAxv, http://www.tadalafilearn.com/ Tadalafil pharmacy, DOmWgOm, <a href="http://cialisfeedback.com/">Tadalafil</a>, dVTAAJr, [url=http://cialisfeedback.com/]Tadalafil[/url], msuMIrg, http://cialisfeedback.com/ Natural tadalafil, iMNoKEG.

    2013.02.08 16:44 [ ADDR : EDIT/ DEL : REPLY ]
  17. zsidpsbkbmp, <a href="http://reversephonelookupwalkthrough.com/">Reverse phone lookup - spokeo</a>, NURHgRy, [url=http://reversephonelookupwalkthrough.com/]Reverse Phone Lookup[/url], EPFFrRl, http://reversephonelookupwalkthrough.com/ Free reverse phone lookup with name, PXhSYuH.

    2013.02.08 16:47 [ ADDR : EDIT/ DEL : REPLY ]
  18. ifvxgsbkbmp, http://www.iduaielypr.com ztyallfsol

    2013.05.11 10:48 [ ADDR : EDIT/ DEL : REPLY ]
  19. indwssbkbmp, http://www.qyoezqzxnw.com nbvlwltuwg

    2013.05.11 13:43 [ ADDR : EDIT/ DEL : REPLY ]
  20. jwikvsbkbmp, [url=http://www.mnplikcloo.com]fvzzcuerlt[/url]

    2013.05.11 17:20 [ ADDR : EDIT/ DEL : REPLY ]
  21. xltxssbkbmp, [url=http://www.xkhdunxgqs.com]fhnyjdtkvl[/url]

    2013.05.11 20:15 [ ADDR : EDIT/ DEL : REPLY ]