Apache Solr The second study solr installation (windows)

A, solr installation (windows)

      In a previous article, we have prepared the environmental needs, the next step is to start solr, solr-6.6.6 boot can be used directly own jetty start, you can also use the tomcat start.

   (1) jetty start

           The solr-6.6.6 extracting the corresponding folder, open the window shell interface or cmd interface, found under solr-6.6.6 \ bin directory using \ solr.cmd start command to start, following the successful launch plans:

PS F:\solr\solr-6.6.6\bin> .\solr.cmd start
Waiting up to 30 to see Solr running on port 8983
Started Solr server on port 8983. Happy searching!

         Open http://127.0.0.1:8983/solr/#/ can appear administration page is started successfully.

   (2) tomcat start

      1. solr directory under the file decompression: solr-6.6.6 \ server \ solr-webapp \ webapp folder to extract the file tomcat webapps folder, and rename solr, the name of the custom.

      2. solr extract the directory server \ lib \ ext folder of a jar copied to the tomcat extract the directory webapps \ solr \ under WEB-INF \ lib folder.

      3. dist folder solr-dataimporthandler-6.6.0.jar and solr-dataimporthandler-extras-6.6.0.jar two jar package is also copied to the tomcat-extracting head record webapps \ solr \ WEB-INF \ lib file folder.

      4. The server \ lib folder of a jar: metrics-core-3.2.2.jar, metrics -ganglia-3.2.2.jar, metrics-graphite-3.2.2.jar, metrics-jetty9-3.2.2 .jar, metrics-jvm-3.2.2.jar other five packets are copied to the jar to extract omcat

          Directory webapps \ solr \ WEB-INF \ lib folder.

      5. solr extract the directory server \ solr folder copied to the F drive (or other dish) non paths, such as F: / solr, note that this path can not be Chinese.

      6. Modify the tomcat webapps \ solr \ WEB-INF \ web.xml the following configuration:

         The red part of the standard was changed before their F: / solr path

<env-entry>
    <env-entry-name>solr/home</env-entry-name>
    <env-entry-value>F:/solr</env-entry-value>
    <env-entry-type>Java.lang.String</env-entry-type>
</env-entry>

          Notes about the content (the part of the user access control solr)

<!--
<security-constraint>
<web-resource-collection>
<web-resource-name>Disable TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method>TRACE</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Enable everything but TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method-omission>TRACE</http-method-omission>
</web-resource-collection>
</security-constraint>
-->

7. Unzip the file path in tomcat webapps \ solr \ WEB-INF under the new folder classes.

8. Configure log4j, unzip the solr directory server \ log4j.properties file resources folder path to the tomcat webapps \ solr \ under WEB-INF \ classes folder. After the above configuration, start tomcat,

    After starting can be opened in a browser http://127.0.0.1:8080/solr/ can appear normal admin page of solr

Second, the admin page

      Dashboard: you can view environmental information solr instances running, including version number, storage space, the virtual machine operating status
   Logging: Logging
   Core Admin: The management of the core, the core can create, modify, and delete.
   Java Properties: Display Properties java runtime environment configuration information
   Thread Dump: display thread's stack trace information 

 


  

          

 

 

 

Guess you like

Origin www.cnblogs.com/zhexuejun/p/11871721.html