All these steps are based on tutorial from http://.c2b2.co.uk/2013/06/getting-started-with-glassfish-4.html
yum install java-1.7.0-openjdk-devel
- Add following lines to
export PATH=$PATH:/usr/lib/jvm/java-1.7.0-openjdk-22.214.171.124.x86_64/bin export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-126.96.36.199.x86_64
- Run this command to reload environment variables:
unzip -d /opt/oracle glassfish-4.0.zip
- ./asadmin create-service Found the Linux Service and successfully uninstalled it. The Service was created successfully. Here are the details: Name of the service:domain1 Type of the service:Domain Configuration location of the service:/etc/init.d/GlassFish_domain1 User account that will run the service: root You have created the service but you need to start it yourself. Here are the most typical Linux commands of interest:* /etc/init.d/GlassFish_domain1 start
- /etc/init.d/GlassFish_domain1 stop
- /etc/init.d/GlassFish_domain1 restart For your convenience this message has also been saved to this file: /opt/oracle/glassfish4/glassfish/domains/domain1/PlatformServices.log Command create-service executed successfully.
./asadmin change-admin-password. Initial admin password is blank. You need to change it to something else.
./asadmin --host blah.example.com --port 4848 enable-secure-admin