Use the manual installation for a newer version, check the latest version here and replace the version in the commands below, for old versions check here
cd ~
wget http://archive.apache.org/dist/lucene/solr/5.3.1/solr-5.3.1.tgz
tar xzf solr-5.3.1.tgz solr-5.3.1/bin/install_solr_service.sh --strip-components=2
sudo chmod +x install_solr_service.sh
sudo ./install_solr_service.sh solr-5.3.1.tgz
An older version of solr
An older version of
solr-tomcat
andsolr-jetty
is in the Ubuntu Universe repositiories, for a newer version see below.For Tomcat
For Jetty
Open the URL
http://localhost:8080/solr/admin/
, if your tomcat is listen on port 8080.Uninstall
A newer version of solr
Use the manual installation for a newer version, check the latest version here and replace the version in the commands below, for old versions check here
Open the URL
http://your_server_ip:8983/solr
More details
Uninstall via
For a better explanation of the uninstall steps, read my answer here.