一、下載與安裝。
如何下載以及安裝配置,請參考:Windows下JBOSS安裝配置圖文教程
二、現在主要了解一下JBOSS目錄結構。
1. 主目錄: E:\jboos\jboss-6.1.0.Final

bin
開始和停止JBoss的地方。
其中有兩個主要的批處理文件:run.bat和shutdown.bat。要啟動JBoss只要執行run.bat文件即可;要停止JBoss必須執行帶參數的shutdown.bat。
client
Stores configuration files and JAR files that may be used by a Java client application (running outside JBoss) or an external web container. You can select archives as required or use jbossall-client.jar.
保存Java客戶端應用或外部web容器(在JBoss之外運行),所需的配置文件和Jar文件。
common
該子目錄lib的jar包,整個jboss共享。
docs
Contains the XML DTDs used in JBoss for reference (these are also a useful source of documentation on JBoss configuration specifics). There are also example JCA (Java Connector Architecture) configuration files for setting up datasources for different databases (such as MySQL, Oracle, Postgres).
包含一些jboss的XML DTD文件,還有一些案例和文檔。
lib
Contains startup JARs used by JBoss. Do not place your own JAR files in this directory.
包換JBoss所需的jar文件。不要把你自己的jar文件放在這個目錄。
server
Contains the JBoss server configuration sets. Each of the subdirectories in here is a different server configuration. JBoss ships with minimal, default, production, and all configuration sets. The subdirectories and key configuration files contained in the default configuration set are discussed in more detail in subsequent sections.
包含JBoss服務器實例的配置集合。這里的每個子目錄就是一個不同的服務器實例配置。

server目錄下的文件夾:
--conf
The conf directory contains the jboss-service.xml bootstrap descriptor file for a given server configuration. This defines the core services that are fixed for the lifetime of the server.
conf目錄中包含了這個服務器的啟動描述文件jboss-service.xml。這個文件定義了服務器運行時間內提供那些固定的核心服務。
--data
The data directory is available for use by services that want to store content in the file system. It holds persistent data for services intended to survive a server restart. Serveral JBoss services, such as the embedded Hypersonic database instance, store data here.
服務中需要存儲內容到文件系統的都會保存到data目錄。JBoss內嵌的Hypersonic database的數據也是保存到這里的。
--deploy
The deploy directory contains the hot-deployable services (those which can be added to or removed from the running server). It also contains applications for the current server configuration. You deploy your application code by placing application packages (JAR, WAR and EAR files) in the deploy directory. The directory is constantly scanned for updates, and any modified components will be re-deployed automatically. This may be overridden through the URLDeploymentScanner URLs attribute.
deploy中包含可熱部署的服務(可以在服務器運行時動態添加和刪除)。當然這里還包含有這個服務器實例下的應用程序。你可以發布你的應用程序代碼的壓縮包(JAR,WAR和EAR文件)到這里。這里目錄會被搜索更新,所有修改的組件都會被自動重新部署。
--lib
This directory contains JAR files (Java libraries that should not be hot deployed) needed by this server configuration. You can add required library files here for JDBC drivers etc. All JARs in this directory are loaded into the shared classpath at startup.
這個目錄中包含這個服務器配置需要的JAR文件(這些java庫不需要被熱部署)。你可以添加需要的庫文件到這里,如JDBC驅動等。所有的jar文件將在服務器啟動的時候被加載到共享的classpath中。
--log
This is where the log files are written. JBoss uses the Jakarta log4j package for logging and you can also use it directly in your own applications from within the server. This may be overridden through the conf/log4j.xml configuration file.
日志文件會被寫到這里。如果你要修改日志輸出目錄,可以通過配置conf/log4j.xml實現。
--tmp
The tmp directory is used for temporary storage by JBoss services. The deployer, for example, expands application archives in this directory.
tmp目錄被用來提供JBoss服務的臨時存儲。
--work
This directory is used by Tomcat for compilation of JSPs.
提供給tomcat編譯jsp文件用。
參考:http://www.cnblogs.com/phoebus0501/archive/2010/12/15/1907399.html
參考:瘋狂java。
