Install Solr 7 - Solr Search API | Drupal 8

Install Solr 7 - Solr Search API

Submitted by editor on Thu, 04/26/2018 - 15:22
Question

How to Install solr 7 on linux ubuntu / Linux mint ?

1. Install java

Install Java 8 on Ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Verify Java Inatallation
sudo apt-get install oracle-java8-set-default
java -version

Setup JAVA_HOME and JRE_HOME Variable
cat >> /etc/environment <<EOL
JAVA_HOME=/usr/lib/jvm/java-8-oracle
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
EOL

2. Install Solr

Install Apache Solr 7.3
cd /opt
sudo wget http://www-eu.apache.org/dist/lucene/solr/7.3.0/solr-7.3.0.tgz
sudo tar xzf solr-7.3.0.tgz solr-7.3.0/bin/install_solr_service.sh --strip-components=2
sudo bash ./install_solr_service.sh solr-7.3.0.tgz

Start / Stop Solr Service
sudo service solr stop
sudo service solr start
sudo service solr status

Create First Solr Collection (If need)
#sudo su - solr -c "/opt/solr/bin/solr create -c mycol1 -n data_driven_schema_configs"

Access Solr Admin Panel
http://localhost:8983/

 

3. Configure solr

TODO

4. Configure Drupal 8 / Solr for drupal

TODO

Add new comment