A script for ubuntu 14 or 16 to install Apache Solr including Java installation.

installsolr.sh #!/bin/bash wget –no-check-certificate –no-cookies –header “Cookie: oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.tar.gz” tar -xvf jdk-7* mkdir /usr/lib/jvm mv ./jdk1.7* /usr/lib/jvm/jdk1.7.0 update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jdk1.7.0/bin/java” 1 update-alternatives –install…