One, run 1, solr run container, tomcat2, copy the apache-solr-3.6.0.war to the tomcat webapps directory, and renamed solr. war3, tomcat conf directory to establish the structure of confCatalinalocalhost two folders. Create two folders (the HOME directory of solr) with the structure of solr-tomcatsolr, for example
One, run 1, solr run container, tomcat 2, copy the apache-solr-3.6.0.war to the tomcat webapps directory, and renamed solr. war 3: create two folders in the conf directory of tomcat that are structured as conf/Catalina/localhost. Create two folders (the HOME directory of solr) with the structure of solr-tomcat/solr, for example
1. Run
1. solr running container, tomcat
2. Copy the apache-solr-3.6.0.war to the tomcat webapps directory and change it to solr. war.
3. Create two folders with the conf/Catalina/localhost structure in the conf directory of tomcat. Create two folders (the HOME directory of solr) with the structure of solr-tomcat/solr, such as the root directory of the d Drive, d:/solr-tomcat/solr, the solr-tomcat folder name can be any name, copy all files and folders under apache-solr-3.6.0 \ example \ solr to this
4. Create solr. xml in the localhost folder and save the following content:
5. You can run tomcat and enter http: // localhost: 8080/solr/admin in the address bar for verification.
6. Start adding configuration for the imported database data. Copy the jdbc driver jar and apache-solr-3.6.0 \ dist \ apache-solr-dataimporthandler-3.6.0.jar jar to tomcat's webapps/solr/WEB-INF/lib. Copy (and overwrite) all files and folders under apache-solr-3.6.0 \ example-DIH \ solr to the HOME Directory of solr, such as d:/solr-tomcat/solr
7. Change conf/solrconfig. xml in the solr Home directory and add the following content:
D: \ solr-tomcat \ solr \ db \ conf \ db-data-config.xml