Linux and MacOS
Prerequisites
- Install Java 8 JRE with
sudo apt install default-jreon Debian based OS, follow these install instructions for MacOS or visit the help section on java.com for other systems.
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.tgzInstall Solr with
sudo bash solr-8.10.1/bin/install_solr_service.sh solr-8.10.1.tgzIt 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 solrIf you want to load Solr at system start type
sudo systemctl enable solrWindows
Prerequisites
- Download Java 8 JRE and install it at your machine.
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:\SOLRStart SOLR server with
bin\sorl.cmdUSAGE
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 solrChange to user solr with
su solrCreate 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.
.