1. Download Tomcat9 and solr5.5
2. Unzip Tomcat9 and solr5.5
Create a new SOLR directory in the WebApps 3.tomcat and copy all the files in the Solr-5.5.0\server\solr-webapp\webapp directory
4. Create a new Classes folder under the Web-inf file and copy the Solr-5.5.0\server\resources\log4j.properties to the Classes folder to see the SOLR log.
5. Modify Web-inf/web.xml
<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>
Put your SOLR home here to replace with your own solrhome
Note: The specified directory must exist, create it yourself
6. Copy all the jar packages under the Solr-5.5.0\server\lib\ext to the Web-inf/lib directory
7. Create a Core1 (Web-inf/web.xml) in Solr_home (the specified directory), core1 create two folders, data,conf.
Copy all the files inside the solr-5.5.0\server\solr\configsets\basic_configs\conf to the new conf file.
Copy the Solr-5.5.0\server\solr\solr.xml to the Core1 sibling.
8. End, start Tomcat, enter http://localhost:8080/solr/index.html. Access is normal, that is, success.
TOMCAT9 Deployment solr5.5