Http://jingyan.baidu.com/article/d8072ac4625b07ec95cefdbe.html
Now the online about SOLR in Tomcat deployment of the article is basically 4.x, but SOLR upgraded to 5.x, the structure has changed, many articles have not been applied, here to explore the 5.x in Tomcat deployment method, so that everyone reference
Tools/Materials
- Download SOLR 5.3 Version: http://www.apache.org/dyn/closer.lua/lucene/solr/5.3.0
- Download Tomcat (6 or later) and download the 32-bit or 64-bit version according to the system: http://tomcat.apache.org/
Method/Step
Unzip Tomcat into a directory, such as F:\Apache\Tomcat
There is a WebApp folder under the Solr-5.3.0/d:\solr-5.3.0\server\solr-webapp\ folder in the SOLR zipped package, copy it to the Tomcat\webapps\ directory, and change it to SOLR (the name is arbitrary, Used by the browser to access the SOLR management interface)
Copy the jars from the Solr-5.3.0\server\lib\ext in the SOLR compact package to the Tomcat\ webapps\solr\web-inf\lib directory
Copy solr-5.3.0/server/resources/log4j.properties in SOLR compressed package to tomcat\ Webapps\solr\web-inf\lib directory
Copy the SOLR-5.3.0/SERVER/SOLR directory in the SOLR compressed package to a directory on your computer, such as D:\solr_home
Open Web. XML under Tomcat/webapps/solr/web-inf and find the following configuration (the content is commented out in the initial state):
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/put/your/solr/home/here</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
Change the contents of <env-entry-value> into your solr_home path, this is D:/solr_home
- 7
Save off, then start Tomcat, and the SOLR Admin interface will appear in the browser input HTTP://LOCALHOST:8080/SOLR
Tomcat under Deployment Solr5.3