Glassfish installation configuration and debugging detailed

Source: Internet
Author: User
Tags glassfish

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.