Quick Install
Download the package from the official website Apache Solr the uncompress and continue with the following:
JAVA_HOME=/opt/jdk1.8.0_211/
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/jdk1.8.0_211/
export JAVA_HOME
export PATH