I. Installation of GlassFish
From the following address: https://glassfish.dev.java.net/public/downloadsindex.html
Download Milestone binary builds Linux version: B32g-glassfish-linux.jar size 77M
Before installing GlassFish, you should install the following settings in advance/etc/profile
#config Java
System needs to be installed J2SE 5.0
Export java_home=/usr/local/jdk1.5.0_06
Export Path=/usr/local/jdk1.5.0_06/bin: $PATH
#config Ant
Export ant_home=/usr/local/apache-ant-1.6.2
Export Path=/usr/local/apache-ant-1.6.2/bin: $PATH
Then run Java-xmx256m-jar Glassfish-installer-9.0-b32g.jar
CD GlassFish
Run Ant-f Setup.xml
To install the system in:/usr/local/glassfish/
The system default administration property values are:
Domain.name= "Domain1"
Instance.name= "Server"
Admin.user= "Admin"
Admin.password= "Adminadmin"
Admin.port= "4848"
Instance.port "=" 8080 "
Orb.port= "3700"
Imq.port= "7676"
Https.port= "8181"
Second, the Operation GlassFish
Cd/usr/local/glassfish/bin
[Root@fc3-3 bin]#./asadmin start-domain domain1
Open the browser and enter
http://192.168.1.3:8080/
Logon to the Administration Console
http://192.168.1.3:4848/
User Name:admin
Password:adminadmin
Third, build your first GlassFish application
Download Hello.war
CP Hello.war domains/domain1/autodeploy/
or deploy the application in Asadmin deploy, and asadmin Updeploy uninstall the application
Get more help through Asadmin deploy--help and Asadmin Undeploy--help
Http://192.168.1.3:8080/hello
Run Asadmin stop-domain domain1 to shut down the server