One: Download solr
Download Download solr in Apache's official website: http://lucene.apache.org/solr/
solr7.0 tomcat8.0.11 use
Use direct decompression
Two: Use solr own jetty server startup
shift + right mouse button to open a command window here at solr / bin directory, enter solr.cmd start to start the server in a window
The default startup port number is: 8983
Enter the browser HTTP: // localhost: 8983 , to see if a successful start
At this point the solr.solr.home is $ {solr.home} / server / solr directory. Establish direct file button below it
Two: tomcat start using solr
The copied to the tomcat webapp under solr-7.0.0 \ server \ solr-webapp webapps
The file name to rename solr (about what you want to call all right, in order to better identify, named solr)
1. Copy solr-7.0.0 \ server \ lib portion jar under the package (total of 12) to the lower tomcat webapps \ solr \ WEB-INF \ lib (jar copying items required)
2. Copy solr-7.0.0 \ dist two jar under the package to the webapps tomcat \ solr \ WEB-INF \ lib
3. Create a folder to store data solrHome (folder name and location names do not have to be this pressing)
Copy solr-7.0.0 \ These four files in the server \ solr to solrHome the file you just created folder below
4. Modify the configuration file
Modifications webapps \ solr \ WEB-INF of web.xml tomcat
Comment out these configurations
4.在tomcat路径webapps\solr\WEB-INF文件夹下 新建classes 文件,并把solr-7.0.0\server\resources 下的log4j.properties拷到该文件下
5.启动tomcat