First, prepare the software
- Install Java1.8 and Tomcat9 in advance.
- Download Solr6.1, website location: http://mirrors.tuna.tsinghua.edu.cn/apache/lucene/solr/6.1.0/
3. Extracting files
Second, installation
1. Copy the WebApp folder under the Solr-6.1.0\server\solr-webapp folder to the Tomcat installation directory \webapps\ directory and change to SOLR
2. Copy all jar packages under the Solr-6.1.0\server\lib\ext\ directory to the Tomcat installation directory \webapps\solr\web-inf\lib directory.
3. Copy the Solr-6.1.0\server\resources\log4j.properties file to the Tomcat installation directory \webapps\solr\web-inf\classes\ folder. If you do not have a classes folder, create a new one.
4. Create the SOLR root directory. Create a new directory E:\SOLR and copy the file Solr-6.1.0\server\solr\solr.xml to the E:\solr\ directory.
5, configure the Tomcat installation directory \webapps\solr\web-inf\web.xml file, modify the following configuration content (the initial state of the content is commented out)
Change the contents of <env-entry-value> to the SOLR root directory that you created.
6. Restart Tomcat and enter http://localhost:8080/solr/index.html in the browser to see the management interface of SOLR.
Third, core Admin (ADD core CREATE INDEX Library)
New Folder Mycore1 and data, the folder path is E:\solr\mycore1 and E:\solr\mycore1\data, will Solr-6.1.0\server\solr\configsets\basic_configs\ Copy the Conf folder under the E:\solr\mycore1 directory. Create a new core in the admin interface
Refresh the interface to create the success.
SOLR Standalone Configuration