Solr: 5.2.1 install and config

1. upload  solr-5.2.1.tgz   install_solr_service.sh to the same dir

2.# install_solr_service.sh   solr-5.2.1.tgz 

3. #cd /var/solr/

   #vi  solr.in.sh

modify solr's jvm configure

#SOLR_HEAP="1024M"

SOLR_JAVA_MEM="-Xms512m -Xmx2048m"

 

 4. upload related depencies jars like constom tokenizer jars

    cp tokenizer jars , lexcions, configure file to   /opt/solr/dist

    cp other modified jars to  /opt/solr/server/solr-webapp/webapp/WEB-INF/lib

    Note:   To enable the optional WKT support described in this section, you’ll need to add the JTS JAR to your solr.war file so that your servlet container can load the JTS dependency when Solr first starts up

 

 

5. service solr restart

你可能感兴趣的:(Solr)