Configure solr for jetty

Source: Internet
Author: User
Tags solr

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




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.