现在的位置: 首页 > 综合 > 正文

Windows下的solr安装部署

2013年08月03日 ⁄ 综合 ⁄ 共 747字 ⁄ 字号 评论关闭

1、下载solr。http://mirrors.cnnic.cn/apache/lucene/solr/3.6.2/apache-solr-3.6.2.zip
2、将solr压缩包解压D:\apache-solr-3.6.2,复制D:\apache-solr-3.6.2\dist\apache-solr-3.6.2.war至D:\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\webapps,并改名为solr.war(短名方便)。
3、复制D:\apache-solr-3.6.2\example\solr文件夹至D:\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37。
4、新建目录D:\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\conf\Catalina\localhost,新建solr.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="D:\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\webapps\solr.war" debug="0" crossContext="true" >
   <Environment name="solr/home" type="java.lang.String" value="D:\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\solr" override="true" />
</Context>

抱歉!评论已关闭.