Last active
August 29, 2015 14:22
-
-
Save kriben/3359509c80debe5285bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local | |
wget http://download.java.net/glassfish/4.1/release/glassfish-4.1.zip | |
apt-get unzip | |
unzip glassfish-4.1.zip | |
rm glassfish-4.1.zip | |
glassfish4/bin/asadmin start-domain | |
glassfish4/bin/asadmin change-admin-password | |
glassfish4/bin/asadmin deploy some_war.war | |
glassfish4/bin/asadmin restart-domain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su - | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 | |
apt-get update | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | |
apt-get install oracle-java8-installer | |
apt-get install oracle-java8-set-default | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment