Skip to content

Instantly share code, notes, and snippets.

@buonzz
Last active August 29, 2015 14:00
Show Gist options
  • Save buonzz/fa7d9771a1044432fe7a to your computer and use it in GitHub Desktop.
Save buonzz/fa7d9771a1044432fe7a to your computer and use it in GitHub Desktop.
install glassfish application server
# install jdk first
yum install java-1.7.0-openjdk-devel
#download glassfish
wget http://download.java.net/glassfish/4.0/release/glassfish-4.0.zip
# start the application server
bin/asadmin start-domain
# set the default admin password : NOTE default value is admin/<blank>
bin/asadmin --host localhost --port 4848 change-admin-password
# enable security
bin/sadmin --host localhost --port 4848 enable-secure-admin
#restart
bin/asadmin stop-domain domain1
bin/asadmin start-domain
#open the console in http://hostname:4848
#deploy a hello world app
# download the sample app in here
http://glassfish.java.net/downloads/quickstart/hello.war
#to deploy, use
bin/asadmin deploy hello.war
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment