combine SOLR and Tomcat:
1. Create a directory under D disk D:\DEMOS\SOLR
2. Unzip the solr-4.9.0 file, I download here is this 4.9 version, will example folder in the Solr folder of all the files (not including the SOLR folder itself)
Copy to the D:\DEMOS\SOLR directory
3. Create a SOLR web app that will unzip the solr-4.9.0 under the Dist directory under the Solr-4.9.0.war file
Copy to the D:\apache-tomcat-7.0.54\webapps folder, Rename to Solr.war, be sure to unzip the war file yourself, (start Tomcat will automatically unzip, but this file inside the Lib directory of things as if it is not extracted), see WebApps Below a more Solr folder, such as:
4. Open the Solrconfig.xml file under D:\Demos\Solr\collection1\conf,
comment out these configuration, temporarily not
continue to find the DataDir node, modify the value to <datadir>${solr.data.dir:d:/demos/solr/data}</datadir>, The Data folder is the place where you store the query index and data.
5. Open the Web. xml file under the D:\apache-tomcat-7.0.54\webapps\solr\WEB-INF folder, add the Env-entry node (commented out by default) and modify the value to < Env-entry-value>d:/demos/solr</env-entry-value> Pay attention to the slash.
6. Place all jar packages under dist/solrj-lib under the extracted solr-4.9.0 folder
Copy to the D:\apache-tomcat-7.0.54\lib folder
after you start Tomcat, in the Address bar, enter: HTTP://LOCALHOST:8080/SOLR
Enter the Tomcat manager to find SOLR, if found to be not started, or the Point Start button will not start SOLR successfully, such as:
need to look under the Tomcat log folder under Localhost.2014-07-31.log This log file, to find the crux of the problem!
This error is missing Jar pack ( Slf4j.jar). \lucene\solr-4.9.0\example\lib\ext all jar packages under this path with the F:\tools\ development tool
copy into the D:\apache-tomcat-7.0.54\webapps\solr\WEB-INF\lib folder, which is the application's Lib folder. At the same time, the F:\tools\ development tool under the SOLR package \lucene\solr-4.9.0\example\resources\log4j.properties this log file
copy near D:\apache-tomcat-7.0.54\webapps\solr\WEB-INF\classes (no Classes folder to create it by hand).
Finally, the jar file inside the Lib directory of the SOLR application is like this, such as:
Restart Tomcat, enter the URL http://localhost:8080/manager/html, and start SOLR, such as:
Access SOLR from within Tomcat, such as:
See this interface after you are done!!! Finally the SOLR was settled. Java is the configuration too laborious ah.
Installing and configuring SOLR 4.9 under Windows