glassfish installation
First, download the GlassFish
Second, install
1, if there is no need to download JDK1.5
2, decompression
% java-Xmx256m-jar filename.jar
3, into the directory glassfilsh
% Cd glassfish
4, in setup.xml set up in port:
<property name=”admin.port” value=”4848″/>
<property name=”instance.port” value=”8080″/>
<property name=”orb.port” value=”3700″/>
<property name=”imq.port” value=”7676″/>
<property name=”https.port” value=”8181″/>
Admin.port which is the port management background, the username / password: admin / adminadmin
instance.port is http port
5, to install
UNIX:
% Chmod-R + x lib / ant / bin
% Lib / ant / bin / ant-f setup.xml
windows:
% Lib / ant / bin / ant-f setup.xml
6, GlassFish cluster installation, use the following command
UNIX:
% Lib / ant / bin / ant-f setup-cluster.xml
Windows:
% Lib \ ant \ bin \ ant-f setup-cluster.xml
Third, GlashFish start and shut down an order
. / bin / asadmin start-domain domain1
. / bin / asadmin stop-domain domain1
Fourth, application of their subordinates (4 ways)
1, directly or war will be on glassfish/domain/domain1/autodeploy directory ear under, glassfish start automatically after the deployment of
2, through an order to deploy asadmin deploy applications, and uninstall applications asadmin updeploy
Through asadmin deploy – help and asadmin undeploy – help to get more help
3, through the management console glassfish
4, subordinates directory: WEB application catalog is about to copy directly to the glassfish/domains/domain1/applications / Under
Then the command: glassfish / bin / asadmin deploydir full_path / applications / your_app