[JBoss] 將JBoss EAP 設定為windows service

部署JBoss 時, 在Linux 中, 可以透過設定chkconfig 加入JBoss 便可於system boot 時自行啟動. 而在Windows, 因為JBoss EAP 須要課金下載JBoss Core Services Jsvc Package 才可. 但其實有其實方法實現, 方法如下.

  1. 設定system variable
    JBOSS_HOME: <<JBoss 安裝路徑>>
  2. 設定Common Deamon.
    下載commons-daemon, 並unzip 到%JBOSS_HOME%\bin 中
    網址: http://mirrors.advancedhosters.com/apache/commons/daemon/binaries/windows/
  3. 設定JBoss Service.
    利用administrator 權限開啟command prompt. 並輸入以下指令.

    %JBOSS_HOME%\bat\service.bat install
  4. 啟動service.
    利用administrator 權限開啟services.msc, 找出JBossEAP, 並啟動它.
  5. 進行測試.
    在瀏覽器中輸入http://localhost:8080, 若出現JBoss main page 代表測試成功.
About C.H. Ling 260 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.