Solr6.0 and jetty, Tomcat build/deploy in Win environment

Source: Internet
Author: User
Tags solr

Summary: The new features of SOLR6 include enhanced Edismax, better support for SQL-parallel SQL, JDBC driver, more SQL syntax support, and so on, and after SOLR6 release, SOLR5 continues to update, for users who want to taste SOLR6, what is different from previous versions, Let's explore it together.

SOLR6 starts with the default jetty
    1. Required Software support

      • JDK1.8 or more
      • SOLR6 installation package (Solr-6.0.0.zip approx. 140M)
    2. SOLR comes with a jetty environment that makes it easy to run SOLR.
      Run directly to the extracted Solr/bin directory solr start .

      My environment is java1.7, check it out.

      How does it match the reality? Originally, my java1.8 is directly installs, it will own the running file copy one copies puts in C:\ProgramData\Oracle\Java\javapath (ProgramData is a hidden folder, needs to be set to show out), However, the Java_home I set previously was not changed, and the environment variable was set to java1.8 and started again.

      See this information, you can.

    3. Access to http://localhost:8983/solr/index.html can be seen in SOLR's graphical interface, but our sore is still empty and needs to be created manually. Start by creating a new folder under the. \SOLR-6.0.0\SERVER\SOLR directory core0 and copy all the files under. \solr-6.0.0\server\solr\configsets\basic_configs.
      In the admin interface, click on the No cores available option, in the popup window just create the new folder name.

      In this way, the simplest SOLR is built.
    4. To stop running, run solr stop in the command window
SOLR6 deployed in the JETTY9 environment
    1. Required software support

      • JDK1.8 above
      • SOLR6 installation package (Solr-6.0.0.zip approx. 140M)
      • Jetty9.3.10 (at least jet ty9.3.8 above, Apache-tomcat-7.0.68-windows-x86.zip approx. 11M)
    2. In previous versions of the SOLR installation package, There is a Solr.war file, but SOLR6 has no such war package, it has been extracted to the. \solr-6.0.0\server\solr-webapp folder, copy the contents of the folder under the. \jetty-9.3.10\webapps , the directory should be webapp and changed to SOLR. &NBSP

    3. log Processing: Copy the 5 jar packages from the. \solr-6.0.0\server\lib\ext in the SOLR installation package to the. \jetty-9.3.10\webapps\solr\web-inf Under the \lib. Copy the log4j.properties file under. \solr-6.0.0\server\resources to the. \jetty-9.3.10\webapps\solr\web-inf\classes , the classes directory here needs to be created by itself. A row of Log4j.appender.file.file=${solr.log}/solr.log in the log4j.properties file specifies the storage path for the log file. Can be specified to a specific directory.
    4. Configure Solr_home: Create a new directory anywhere on the disk, name solr_home , and copy the entire SOLR folder under. \SOLR-6.0.0\SERVER\SOLR to Solr_ Home , edit the Web. xml file under. \jetty-9.3.10\webapps\solr\web-inf.
    5. Remove the Web. xml file comment, <env-entry-value> , fill in the solr_home path that you just created
    <env-entry>       <env-entry-name>solr/home</env-entry-name> <env-entry-value>E:\Tools\solr_home</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry>
    • 1
    • 2
    • 3
    • 4
    • 5
    • 1
    • 2
    • 3
    • 4
    • 5
    1. The solr_home contents of this inside are copied. \solr-6.0.0\server\solr\, and then create a new folder under the directory core0 , put the. \solr-6.0.0\server\solr\configsets\basic_ All files under Configs\ are copied in.

    2. Startup: In Jetty's installation directory, run java -jar start.jar

    3. Visit http://localhost:8080/solr/index.html to see the SOLR admin interface, but our sore is still empty and needs to be created manually. In the admin interface, click on the No cores available option, in the popup window just create the new folder name.

      In this way, the simplest SOLR is built.
SOLR6 deployed in the TOMCAT8 environment
    1. Required Software support
      • JDK1.8 or more
      • SOLR6 installation package (Solr-6.0.0.zip approx. 140M)
      • Tomcat8 (at least tomcat-8.0 above, apache-tomcat-8.5.5-windows-x86.zip approx. 10M)
    2. In the previous version of the SOLR installation package, there is a Solr.war file, but SOLR6 has no such war package, it has been extracted to the. \solr-6.0.0\server\solr-webapp folder, copy the WebApp under the folder to. \ Apache-tomcat-8.5.5\webapps, the directory should now be webapp and changed to SOLR.
    3. Log processing: Copy the 5 jar packages within the SOLR installation package. \solr-6.0.0\server\lib\ext to. \apache-tomcat-8.5.5\webapps\solr\web-inf\lib. Copy the Log4j.properties file under. \solr-6.0.0\server\resources to the. \apache-tomcat-8.5.5\webapps\solr\web-inf\classes, The classes directory here needs to be built on its own. The log4j.properties file has a line Log4j.appender.file.file=${solr.log}/solr.log specify the log file's storage path and can be specified to a specific directory.
    4. Configure Solr_home: Create a new directory anywhere on the disk, name Solr_home, copy the entire Solr folder under. \solr-6.0.0\server\solr to Solr_home, edit. \apache-tomcat-8.5.5\ The Web. xml file under Webapps\solr\web-inf.
    5. Remove the Web. xml file comment and <env-entry-value> fill in the path you just created solr_home
      <env-entry> 
      <env-entry-name>solr/home</env-entry-name> 
      <env-entry-value>E:\Tools\solr_home</env-entry-value> 
      <env-entry-type>java.lang.String</env-entry-type> 
      </env-entry> 
    6. The solr_home contents of this inside are copied. \solr-6.0.0\server\solr\, and then create a new folder under the directory core0 , put the. \solr-6.0.0\server\solr\configsets\basic_ All files under Configs\ are copied in.
    7. Run, just double-click startup.bat
    8. Visit http://localhost:8080/solr/index.html to see the SOLR admin interface, but our sore is still empty and needs to be created manually. In the admin interface, click on the No cores available option, in the popup window just create the new folder name.

      In this way, the simplest SOLR is built.
    9. Http://blog.csdn.net/jiangchao858/article/details/52503204?locationNum=6&fps=1

Solr6.0 and jetty, Tomcat build/deploy in Win environment

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.