一、JBoss安裝
1、下載下傳http://pan.baidu.com/s/1bnmYN7p,解壓jboss-as-7.1.1.Final.zip即完成安裝
2、啟動:運作jboss-as-7.1.1.Final\bin\standalone.bat
3、打開浏覽器,輸入http://127.0.0.1:8080/ 出現JBoss歡迎頁面說明安裝啟動成功
二、JBoss基本操作
1、war部署
(1)建立檔案目錄結構如下:
demoWAR
|__ WEB-INF
|__ hello.html
hello.html内容如下:
<!DOCTYPE html>
<html>
<head></head>
<body>
Hello world!
</body>
</html>
(2)指令行打war:
cd 到demoWAR目錄下,執行jar -cvf demo.war *
将生成的demo.war部署到JBoss 下standalone\deployments目錄。
浏覽器通路:http://127.0.0.1:8080/demo/hello.html測試