jboss AS 7.X 安裝啟動

首先從jboss官網下載,網址:http://www.jboss.org/jbossas/downloads
解開壓縮後目錄結構如下:

若沒什麼特別,直接在command模式一下,在bin目錄下,執行:standalone.sh(若是window系統,請執行:standalone.bat)即可,
啟動完成後,可以透過http://localhost:8080/,看到下列結果:

您可以點選 administrator console,此時會請您先建立使用者,再使用一個command模式,在bin目錄下,執行:add-user.sh(若是window系統,請執行:add-user.bat)
執行後會出現:
What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
選擇 a,
Enter the details of the new user to add.
Realm (ManagementRealm) : (enter)
Username : (輸入帳號)
Password : (輸入密碼)
Re-enter Password :(再輸入密碼)
About to add user ‘xxxxxx’ for realm ‘ManagementRealm’
Is this correct yes/no? yes(輸入yes)
建立完成,即可進入管理界面了。
若您在啟動時,希望載入自定的設定檔,指令如下:

./standalone.sh --server-config=standalone-ha.xml

Related Posts