Solr configuration installation (1)

1. Introduction to Solr

       Solr is an independent enterprise-level search application server that provides an API interface similar to Web-service. Users can submit XML files in a certain format to the search engine server through http requests to generate indexes, based on the Java search engine server of Lucene

 

Second, Solr installation configuration (Linux)

       2.1, Tomcat runs Solr

                A. Download solr, address: http://archive.apache.org/dist/lucene/solr/4.9.1/ , decompress solr-4.9.1.tgz

 

                B. Copy Solr's own solr.war to the tomcat application directory

                      cp /solr-4.9.1/example/webapps/solr.war /usr/local/server/apache-tomcat/webapps/

 

                C. Unzip solr.war, modify solr/WEB-INF/web.xml, and add it last in the <web-app/> node   

                   

                  D. Create the solr home directory

                        mkdir /usr/local/server

                        cp /solr-4.9.1/example/solr /usr/local/server/

 

                  E. Copy the jar under solr4.9.1-->example-->lib-->ext to apache-tomcat/webapps/solr/WEB-INF/lib

                  F. Start Tomcat and visit the address: http://localhost:8983/solr

 

       2.2, Jetty runs Solr

                A. Copy solr4.9.1 to /usr/local/server/solr

                B. Add shell startup script, startup.sh

                C. Start:

                     
  

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326689471&siteId=291194637