Skip to content

Instantly share code, notes, and snippets.

@alefhsousa
Last active April 2, 2021 21:29
Show Gist options
  • Select an option

  • Save alefhsousa/145dee7cee77937248a17bce0ff97291 to your computer and use it in GitHub Desktop.

Select an option

Save alefhsousa/145dee7cee77937248a17bce0ff97291 to your computer and use it in GitHub Desktop.
setup-java
#!/bin/bash
sudo yum install -y java-1.8.0-openjdk-devel.x86_64
sudo wget http://ftp.meisei-u.ac.jp/mirror/apache/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
sudo tar -xzvf apache-maven-3.6.3-bin.tar.gz
sudo mv apache-maven-3.6.3 /opt/
cd /opt && sudo ln -s /opt/apache-maven-3.6.3 apache-maven
sudo yum install -y mysql-server
curl https://gist.githubusercontent.com/alefhsousa/bb41a9ec3f23ce8b8d8065eda3f50ff2/raw/96d51ef7c6a0545d4361b448e5684b0222254169/.bash_profile -o ~/.bash_profile
sudo alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment