Home > Database > Mysql Tutorial > body text

solr运行配置与数据库数据导入到solr

WBOY
Release: 2016-06-07 15:41:44
Original
1542 people have browsed it

一,运行 1,solr运行容器,tomcat 2,拷贝apache-solr-3.6.0.war到tomcat的webapps目录下,并改名为solr.war 3,tomcat的conf目录下建立结构为conf/Catalina/localhost的两个文件夹。建立结构为solr-tomcat/solr的两个文件夹(solr的HOME目录),如建在D盘根

一,运行

1,solr运行容器,tomcat

         2,拷贝apache-solr-3.6.0.war到tomcat的webapps目录下,并改名为solr.war

        3,tomcat的conf目录下建立结构为conf/Catalina/localhost的两个文件夹。建立结构为solr-tomcat/solr的两个文件夹(solr的HOME目录),如建在D盘根目录,d:/solr-tomcat/solr,solr-tomcat文件夹名字可任意命名,将apache-solr-3.6.0\example\solr下的所有文件及文件夹拷贝到这下面

        4,在localhost文件夹下建立solr.xml,并保存如下内容:

  
        

         5,此时可以运行tomcat,地址栏输入:http://localhost:8080/solr/admin进行验证

         6,开始为导入数据库数据添加配置。将jdbc驱动jar和apache-solr-3.6.0\dist\apache-solr-dataimporthandler-3.6.0.jar 两个jar拷贝到tomcat的webapps/solr/WEB-INF/lib下。将apache-solr-3.6.0\example\example-DIH\solr下的所有文件及文件夹拷贝(并覆盖)到solr的HOME目录,如:d:/solr-tomcat/solr

         7,更改solr Home目录下的conf/solrconfig.xml,添加如下内容:



D:\solr-tomcat\solr\db\conf\db-data-config.xml 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!