Configure solr for jetty
1. Download jetty8 from the jetty official website.
2. decompress the file and copy the solr directory (index file and configuration) in the solr4.8 directory to the jetty8 root directory.
3. Decompress solr. war under solr4.8/webapps and copy solr to the jetty8/webapps directory to delete all. war files under this directory.
4. Create the solr. xml file under jetty/context (other. xml files can be deleted) as follows:
/solr
/webapps/solr
false
false
/etc/webdefault.xml
Test Realm
/etc/realm.properties
true
true
5. Modify the jetty/bin/jetty. sh file to add the following two lines:
JETTY_HOME =/home/eboss/jetty-solr # adjust the path export JETTY_HOME JAVA_OPTIONS = "-Xmx4g-Xms4g-Xmn1g-XX: MaxPermSize = 128 m-XX: newRatio = 1-XX: Export vorratio = 8-XX: + UseParallelGC-XX: ParallelGCThreads = 5-XX: + UseParallelOldGC-XX: bytes = 128 m-XX: + UseFastAccessorMethods"
6. Download the package and decompress it. copy the file (. jar) to jetty/ext or copy the files in solr8/lib/ext to jetty/lib/ext.
7. Start solr
Cd jetty/bin
./Jetty. sh start