Skip to main content
Skip table of contents

Install Solr as a CentOS service

The easiest way to install SOLR as a CentOS service is to run the {{bin/install_solr_service.sh}} file that comes with your SOLR installation as per instructions at https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production

However, if you already have an existing SOLR instance running and just want to start a service that you can modify the starting parameters freely. Use this tutorial

The service daemon is available at https://github.com/au-research/ANDS-Registry-Core/blob/master/etc/misc/ands-solr

CODE
vim /etc/init.d/ands-solr
# copy the content into the ands-solr file
chmod 755 /etc/init.d/ands-solr
chkconfig --add ands-solr
chkconfig ands-solr on
service ands-solr start

Configuration

CODE
solr_bin="/opt/solr-5.4.0/bin/solr" # where the bin/solr file is located
solr_param="" # parameters pass along with SOLR eg. "-p 8984"
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.