Skip to content

Instantly share code, notes, and snippets.

@Daniel-Dos Daniel-Dos/run.sh
Last active Sep 30, 2019

Embed
What would you like to do?
#!/bin/sh
#update yum
sudo yum update -y
#install git
sudo yum install git -y && cd /home/opc/ && sudo git clone https://github.com/Daniel-Dos/DanielDiasjava-Blog.git
# Download MAVEN and OPENJDK
cd /home/opc/ && sudo wget http://ftp.unicamp.br/pub/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz && sudo tar -xf apache-maven-3.6.2-bin.tar.gz
cd /home/opc/ && sudo wget https://github.com/AdoptOpenJDK/openjdk10-openj9-releases/releases/download/jdk-10.0.2%2B13_openj9-0.9.0/OpenJDK10-OPENJ9_x64_Linux_jdk-10.0.2.13_openj9-0.9.0.tar.gz && sudo tar -xf OpenJDK10-OPENJ9_x64_Linux_jdk-10.0.2.13_openj9-0.9.0.tar.gz
sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp
sudo firewall-cmd --reload
cd /home/opc && export PATH=$PWD/jdk-10.0.2+13/bin:$PATH && export PATH=$PWD/apache-maven-3.6.2/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.