solr4.9r+ Eclipse 4.3+ Tomcat 7.5 +WINDS7 (ii)

Source: Internet
Author: User
Tags solr

Respect the original, original address: http://blog.csdn.net/chunlei_zhang/article/details/38778945

This second approach is to deploy the SOLR project to Tomcat and run the method directly when you run Tomcat.

The first method: http://write.blog.csdn.net/postedit/38449037

A) first guarantee solr4.9,eclipse 4.3 tomcat 7.5 Windows7 everything is normal (in fact this way can not be used Eclipse4.3), if there is a project to use the SOLR project we created, directly call, because the project has been deployed to the webapp of Tomcat.

First we unzip the downloaded solr4.9, find the Example\webapps\solr.war and find the Solr.war file, copy the Solr.war file to the WebApp of Tomcat. The Solr.war directory is as follows:


The directories copied to Tomcat are as follows:


Thirdly, we will configure the basic configuration required by the SOLR server to the Tomcat server, then we need to configure our SOLR project, which is similar to the three methods I mentioned for configuring the Web project to Tomcat (respecting the original:/HTTP/ blog.csdn.net/chunlei_zhang/article/details/38446657), here are two methods, one of which is configured in Tomcat's Catalina (in a green box), The second is to use Tomcat's Server.xml (red) for configuration.


We chose the Server.xml configuration as follows:


Here we have to notice that path is the name of the project when we enter the HTTP link for the domain name, Docbase is the location of Solr.war. Solrhome/value for the address of the SOLR project we want to run, let's take the first approach to the SOLR project as an example: the directory is:



You can start Tomcat after this. The way to start Tomcat can be directly from DOS can also find the start.bat of the Tomcat bin file can be, and sometimes error, it is best to first the Tomcat log file empty, and then you can operate, start will error, log as follows:


This is due to the absence of the log jar package when running, we just have to test the example in SOLR in the jar package to Tomcat Lib can, This time do not need to test log4j.porpertis files, execution is reported Waring, but does not affect the operation of the program (because I do not like the way, so I do not want to make too many changes to my tomcat, to demonstrate the second way), the results of the operation are as follows:


After summing up the advantages and disadvantages of the two ways, because of limited knowledge, the summary is not in place, you can not see, if you are interested, you can look forward to their own views, we learn from each other, thank you


solr4.9r+ Eclipse 4.3+ Tomcat 7.5 +WINDS7 (ii)

Related Article

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.