Install JAVA
sudo apt-get install openjdk-11-jdk
Varify the installation
java -version
If the installation is successful then you'll get a response openjdk version "11.0.16"...
like this.
Download solr into your system
wget https://archive.apache.org/dist/lucene/solr/8.9.0/solr-8.9.0.tgz
Extract the tarball file (.tgz)
tar xzf solr-8.9.0.tgz solr-8.9.0/bin/install_solr_service.sh --strip-components=2
Install solr 8.9.0
sudo bash ./install_solr_service.sh solr-8.9.0.tgz
stop, start, restart and check status
sudo service solr stop
sudo service solr start
sudo service solr restart
sudo service solr status
Use start command to initiate solr. Then go to the following URL
http://localhost:8983/
If you see a page like this then solr is installed into your linux system successfully.
Top comments (0)