Tools downloaded in SOLR 5.4.0 version: http://www.apache.org/dyn/closer.lua/lucene/solr/5.4.0 download Tomcat (6 or later), and can also be downloaded according to the system 32 Bit or 64-bit version: Http://tomcat.apache.org/pasting
Method Step 1, extract Tomcat to a directory, such as F:\APACHE\TOMCAT2, the SOLR compressed package in the Solr-5.4.0/d:\solr-5.4.0\server\solr-webapp\ folder has a WebApp folder, Copy it to the Tomcat\webapps\ directory and change it to SOLR (the name is optional, use the browser to access the SOLR Management interface) 3, copy the jar in the Solr-5.4.0\server\lib\ext in the SOLR compact package to Tomcat\ webapps\solr\web-inf\lib directory 4, copy solr-5.4.0/server/resources/log4j.properties in SOLR compressed package to Tomcat\ webapps\ In the Solr\web-inf\classes directory (created if no classes) 5, copy the SOLR-5.4.0/SERVER/SOLR directory in the SOLR compressed package to a directory on your computer, such as D:\solr_home6, open tomcat/ Webapps/solr/web-inf Web. XML, locate 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& Gt;java.lang.string</env-entry-type></env-entry> to change the contents of <env-entry-value> into your solr_home path, this is d:/ Solr_home
7. Open the Web. XML Modification Project welcome page under Tomcat/webapps/solr/web-inf
<welcome-file-list><welcome-file>./index.html</welcome-file> </welcome-file-list>
8, also need to add Solr-dataimporthandler-5.4.0.jar and Solr-dataimporthandler-extras-5.4.0.jar these 2 jar package to the directory/usr/local/tomcat /tomcat-8.0.30/webapps/solr/web-inf/lib/, otherwise will error, these 2 packages default is not in WebApp, in the download package dist directory;
9, save off, and then start Tomcat, in the browser input HTTP://LOCALHOST:8080/SOLR can appear SOLR management interface
10. Add core to create core_1 (customizable) under the Solr_home directory, create the data directory under the Core_1 directory, and copy the Conf directory under the solr_home/configsets/basic_configs/directory to the core _1, add the core through the console and restart Tomcat, and you'll see the new core_1.
Solr5.4.0 deployment to Tomcat