Last active
November 10, 2020 18:22
-
-
Save gaquino/e41b946fd624355f37e9079a1c0792f5 to your computer and use it in GitHub Desktop.
Setup Amazon EC2 - Java 8 + Maven
This file contains 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
---- install Oracle JDK 1.8 | |
$ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.rpm | |
$sudo yum install -y jdk-8u141-linux-x64.rpm | |
---- install OpenJDK | |
$ vi install.sh | |
yum install -y java-1.8.0-openjdk-devel | |
yum remove java-1.7.0-openjdk | |
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
yum install -y apache-maven | |
mvn --version | |
yum install -y git | |
$ chmod 755 install.sh | |
$ sudo ./install.sh | |
---- python | |
sudo pip install gunicorn | |
sudo pip install -r requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this works perfectly.
Thank you for your knowledge :)