Step 1. First, Install Java.
Because solr are Java based softwares we need the Java environment (As it is advised in the Solr wiki : prefere a full JDK to a simple JRE.)
reboot then
to validate run echo $JAVA_HOME
Install Solr
wget http://archive.apache.org/dist/lucene/solr/7.4.0/solr-7.4.0.tgz
tar xzf solr-7.4.0.tgz solr-7.4.0/bin/install_solr_service.sh --strip-components=2
sudo bash ./install_solr_service.sh solr-7.4.0.tgz
Create Solr Collection with name TestCollection1
sudo su - solr -c "/opt/solr/bin/solr create -c TestCollection1 -n data_driven_schema_configs"
this will create new folder with name TestCollection1 in the path /var/solr/data
Start/Stop Solr
sudo service solr stop
sudo service solr start
sudo service solr status
After install Solr it will be available on
http:// Server IP :8983/solr/
View Live Solr Logs
tail -f /var/solr/logs/solr.log
View Live Solr Logs
tail -f /var/solr/logs/solr.log
No comments:
Post a Comment