windows xp下 glassfish安裝及部署【轉載】

來源:互聯網
上載者:User

轉自:http://www.blogjava.net/ann/articles/260260.html

 

 一. 下載解壓glassfish
      1. :
                       https://glassfish.dev.java.net/public/downloadsindex.html

      2. 解壓glassfish :
                   java -Xmx256m -jar glassfish-installer-v2.1-b57-windows.jar(只要配置好java環境都可以執行)
          注意: 必須將協議捲軸從上拖到下,接受按鈕就可以點擊了。
           你的目錄下面將會有個glassfish目錄。

      3. 安裝glassfish。

            1). 修改配置:  ........../glassfish/setup.xml(在解壓後的glassfish目錄下面有setup.xml),不修改也可以。
            2). 執行命令:  ant -f setup.xml

      4.啟動glassfish server
            asadmin start-domain domain1 這個是預設的domain
  
      5. 測試是否正常啟動: 在瀏覽器裡輸入:http://localhost:8080
          看看是否能正常顯示

      6. 建立domain
           執行命令asadmin create-domain --adminport 4849 customerCenter
  
二. 部署
   
     1. 直接把war或者ear 檔案 放在 glassfish/domain/domain1/autodeploy下面,系統會自動部署。

     2. 是通過命令asadmin deploy部署應用, 另外 asadmin updeploy 卸載應用
        通過asadmin deploy --help 和 asadmin undeploy --help 獲得更多協助
    
     3. 通過glassfish管理主控台
         http://localhost:4848
     
     4. 目錄部屬方式:直接把WEB應用目錄直接copy到glassfish/domains/domain1/applications/下
        然後通過命令:glassfish/bin/asadmin deploydir full_path/applications/your_app
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.