Info | ||
---|---|---|
The following instructions are for Debian or Ubuntu Linux. For other Linux distributions, please adapt the commands accordingly.
|
1. Install Prerequisites
Install JDK 8. Please make sure JAVA_HOME is set.
Code Block $ sudo apt-get update $ sudo apt-get install default-jdk
For more detail, you can refer to https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
Set the JAVA_HOME by editing the file
/etc/environment
Code Block $ sudo nano /etc/environment
In this file, add the following line :
Code Block JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
Now reload the file and test:
Code Block $ source /etc/environment $ echo $JAVA_HOME
Install MySQL 5.5 or above.
Code Block $ sudo apt-get install mysql-server $ sudo service mysql start
Install Apache Maven 2.2.1 or above. Please make sure "mvn" command is able to execute from command line.
Code Block $ sudo apt-get install maven $ mvn -version
Install Git.
Code Block $ sudo apt-get install git $ git --version
...