Setup your first solr on ubuntu 18.04

1. install java

apt-get update -y

sudo apt-get install openjdk-11-jdk

java -version

2. install solr

cd /opt/

sudo wget https://apachemirror.sg.wuchna.com/lucene/solr/7.7.3/solr-7.7.3.tgz

sudo tar xzf solr-7.7.3.tgz solr-7.7.3/bin/install_solr_service.sh — strip-components=2

sudo ./install_solr_service.sh solr-7.7.3.tgz

service solr status

3. create sample collection

sudo -u solr /opt/solr/bin/solr create -c hello -n data_driven_schema_configs

4. now browse http://ip:8983 . create a demo

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
LORY

LORY

1.2K Followers

A Senior Software Developer/Body builder . to help others enjoy coding and stay healthy