To install and configure GlassFish you need to have JDK 5 or JDK 6 installed on your system. The configuration processing depends on Ant (1.6.5). The bundle includes an Ant distribution that has been extended with tasks to facilitate developing Java EE 5 applications for the application server.
- Download one of the bundles to disk, set JAVA_HOME to the JDK you have installed on your system.
- Run:
% java -Xmx256m -jar filename.jar
This command will unbundle GlassFish and create a new directory structure rooted under a directory named 'glassfish'.
-
% cd glassfish
- If you are using a machine with an operating system that is a derivative of UNIX(tm), set the execute permission for the Ant binaries that are included with the GlassFish bundle.
% chmod -R +x lib/ant/bin
% lib/ant/bin/ant -f setup.xml
OR for Windows:
% lib/ant/bin/ant -f setup.xml
For GlassFish V2 UR2 with Clustering supported installation, just change step 4 from the above installation
% lib/ant/bin/ant -f setup-cluster.xml
OR for Windows:
% lib/ant/bin/ant -f setup-cluster.xml
Start the server by entering this command: asadmin start-domain domain1
分享到:
相关推荐
glassfish-v2.1.1-b31g-src based on the Java EE 5 standard
glassfish-3.1.2.2.zip上传根据需要使用,基于Java EE 6
glassfish-v3-windows.part1
glassfish-persistence-api-b32g.jar
glassfish-3.1.2.2 dearby使用类库
glassfish-6_2007glassfish-6_2007glassfish-6_2007
离线安装包,亲测可用
glassfish-v3-windows.part2
maven-glassfish-plugin-3.0-prelude-embedded-m2.jar
maven-glassfish-extension-3.0-prelude-embedded-m2.jar
maven-glassfish-plugin-3.0-prelude-embedded-m2-sources.jar
maven-glassfish-extension-3.0-prelude-embedded-m2-sources.jar
glassfish-ose-4.0 白皮书,很全的哦
glassfish-3.1.2-windows比Tomcat好用的服务器
maven-glassfish-plugin-2.0.jar
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
glassfish-v3-windows.part4
通过windows sc dos 命令给windows 服务添加启动服务。 sc create SS9PE binPath= "D:\appserver\glassfish-v2ur1\lib\appservService.exe
maven-glassfish-plugin-3.0-prelude.jar
maven-glassfish-plugin-2.1-sources.jar