- Download binary version of solr from here https://archive.apache.org/
dist/lucene/solr/
The version for 8.5.2 will be https://archive.apache.org/dist/lucene/solr/8.5.2/solr-8. 5.2.tgz
Note: Mind that it needs to be file without “src” in name. You can store the file wherever you like because all files will be copied into right places by installation. -
Run tar xzf solr-8.5.2.tgz solr-8.5.2/bin/install_solr_
service.sh --strip-components=2 -
Run sudo bash ./install_solr_service.sh solr-8.5.0.tgz
NOTE! use “sudo” even if you are logged as root!
By running the command above you run it with default configuration which is equivalent of sudo bash ./install_solr_service.sh solr-8.5.0.tgz -i /opt -d /var/solr -u solr -s solr -p 8983
Solr has two important folders:
– Solr home directory => in config above its /var/solr
– Solr installation directory => in config about its /opt
– Solr installation directory => in config about its /opt
The home directory is where you will have configuration of cores and solr itself.
Installation directory should not be changed.
The final tuning of solr regarding memory, logging configuration etc, should be done in /etc/default/solr.in.sh with env vars.
