zoukankan      html  css  js  c++  java
  • 单机搭建Solr

    搭建并调试Solr

    1、准备jdk7和tomcat7

    2、拷贝solr目录下example/webapps/solr.war,到tomcat下的webapps目录中。

    3、启动tomcat7

    [root@node1 ~]# ./bin/startup.sh
    

    4、编辑tomcat7中的webapps/solr目录中WEB-INF/web.xml

    [root@node1 ~]# cd /opt/modules/apache-tomcat-7.0.61/webapps/solr/WEB-INF
    
    <env-entry>
    <env-entry-name>solr/home</env-entry-name>
    <env-entry-value>/opt/modules/solr/solr_home</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    

    5、拷贝solr目录下的example/lib/ext目录的所有jar到tomcat7的solr的lib

    [root@node1 ~]# yum unzip.x86_64
    [root@node1 software]# unzip solr-4.9.1.zip 
    [root@node1 software]# cd /opt/modules/solr-4.9.1/example/lib/ext
    [root@node1 ext]# cp ./* /opt/modules/apache-tomcat-7.0.61/webapps/solr/WEB-INF/lib/
    


    6、拷贝solr目录下的example/solr/* 所有文件到 /root/solr_home 下

    [root@node1 example]# mv ./solr/* /opt/modules/solr/solr_home/
    


    7、重新启动tomcat

    [root@node1 apache-tomcat-7.0.61]# ./bin/startup.sh

    8、在浏览器访问:http://192.168.230.10:8080/solr/

  • 相关阅读:
    POJ 2154
    POJ 1286
    Polycarp's problems
    Greedy Change
    Goods transportation
    Ugly Problem
    Happy Matt Friends
    Dense Subsequence
    Ray Tracing
    Batch Sort
  • 原文地址:https://www.cnblogs.com/SparseMatrix/p/5255531.html
Copyright © 2011-2022 走看看