Skip to main content

System-wide installation

Submitted by rnsrk on

Linux and MacOS

Prerequisites

Installation

Download the latest Solr binaries from Solrs download page to your preferred download-directory ... is the place, where you save your downloads, i. e. ~/Downloads in Linux/MacOS or the Downloads folder in Windows. . Extract the files (change the Solr-version according to your downloaded file), i. e. with

sudo tar xvfz solr-8.10.1.tgz

Install Solr with

sudo bash solr-8.10.1/bin/install_solr_service.sh solr-8.10.1.tgz

It will be installed at /var/solr but with a symlink at /opt/solr, for more options see /bin/install_solr_service.sh.

You may see the status of the Solr service in your console, quit with q (Solr service keeps running). The basic operations are

sudo systemctl stop solr
sudo systemctl start solr
sudo systemctl status solr

If you want to load Solr at system start type

sudo systemctl enable solr

Windows

Prerequisites

Installation

Download the latest Solr binaries from SOLRs download page. Extract the file to your solrdata-directory ... is the place where want to store the Solr data, i. e. ~/solrdata (on Linux/MaxOS) or C:\solrdata (on Windows). .

Open a CMD-Window ( + R, type cmd hit enter) change directory to solrdata-directory ... is the place where want to store the Solr data, i. e. ~/solrdata (on Linux/MaxOS) or C:\solrdata (on Windows). , i. e. with

cd C:\SOLR

Start SOLR server with

bin\sorl.cmd

USAGE

Linux/MacOS

Creating a solr user and/or add a password may only necessary for Linux users.

Create a password for the user solr, if you haven't already with

sudo passwd solr

Change to user solr with

su solr

Create a dummy-core ... is the initial core in order to download the Solr server config from your Drupal instance, i. e. gettingstarted. with i. e.

/opt/solr/bin/solr create -c gettingstarted

Windows

Create a dummy-core ... is the initial core in order to download the Solr server config from your Drupal instance, i. e. gettingstarted. with i. e.

bin/solr create -c gettingstarted

Check results

Visit http://localhost:8983 in your browser, you should see the Solr dashboard and should have the possibility to choose your dummy-core ... is the initial core in order to download the Solr server config from your Drupal instance, i. e. gettingstarted. .

Need help?

Write an email or join chat.wiss-ki.eu!