您的位置:首页 > 其它

solr 4.6的安装配置

2016-06-13 14:48 344 查看
从网上看了很多资料,很多都是老的。自己也算是结合着弄出来了。

1、下载的准备工作

tomcat8、solr4.6 具体的下载自己去找去吧。或者后期我在提供。

2、开始配置

tomcat路径:E:\tomcat8\apache-tomcat-8.0.30

solr4.6路径:E:\Program Files\solr-4.6.0



首先,将solr目录中的example/webapps中的solr.war复制到tomcat下的webapps中,然后启动tomcat。之后关闭tomcat。

 接着,上面启动后会报错,不用管。在tomcat安装目录下添加conf/Catalina/localhost/solr.xml文件,内容如下

 

<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="E:/solr_home/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="E:/solr_home/solr" override="true" />
</Context>


接着在e盘中新建solr_home文件夹,并将solr.war复制过来,之后在把E:\Program Files\solr-4.6.0\example中的solr复制到solr_home中



最后就是复制solr中的 example/lib/ext目录中的jar包和 example/resources/log4j.properties到tomcat目录下的lib中即可,这时候启动tomcat,在

流蓝器中输入http://localhost:8080/solr

看到solr页面即可

webapps
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: