How To Install Apache Solr on Debian 10
Apache Solr is a highly reliable and scalable open source search platform. Solr powers the search and navigation features of many of the world’s largest internet sites.
Solar is based on Java, so we need to install OpenJDK
1 |
apt install -y openjdk-11-jdk-headless |
Edit .bashrc file
1 |
vi ~/.bashrc |
Add
1 2 |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 export PATH=$PATH:/usr/lib/jvm/java-11-openjdk-amd64/bin |
Log off and log in. Alternatively, you can run
1 |
source ~/.bashrc |
Next download Apache Solr binary package and install
1 2 3 4 5 |
cd /usr/local/src wget "https://www.apache.org/dyn/closer.lua/lucene/solr/8.11.1/solr-8.11.1.tgz?action=download" mv 'solr-8.11.1.tgz?action=download' solr-8.11.1.tgz tar xzf solr-8.11.1.tgz solr-8.11.1/bin/install_solr_service.sh --strip-components=2 bash ./install_solr_service.sh solr-8.11.1.tgz |
To start Apache Solr on boot, run
1 |
systemctl enable solr |
To start Solr, run
1 |
systemctl start solr |
After installation, you can access Solr admin area at
1 |
http://your-server-ip:8983 |