Apache Solr 1 | Installationο
1. Installationο
(1) Installing Javaο
Solr requires Java >= v11 so we have to install Java before we continue. Suppose you are on a MacOS, and you are installing it for the first time, use the following command to install it.
$ brew install java
...
$ sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \
/Library/Java/JavaVirtualMachines/openjdk.jdk
Password:
$ java --version
openjdk 19.0.1 2022-10-18
...
(2) Download and Installο
$ mkdir ~/solr
$ cd ~/solr
$ wget -O solr-9.1.0.tgz "https://www.apache.org/dyn/closer.lua/solr/solr/9.1.0/solr-9.1.0.tgz?action=download"
...
βsolr-9.1.0.tgzβ saved [...]
$ ls solr*
solr-9.1.0.tgz
$ tar -xzf solr-9.1.0.tgz
$ cd solr-9.1.0/
$ bin/solr version
9.1.0