Jboss安装

来源:互联网 发布:忠犬八公的故事 知乎 编辑:程序博客网 时间:2024/05/13 19:37

一、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测试


0 0
原创粉丝点击