在window+tomcat7+jdk7下配置solr4.5
2013-12-04 18:27
232 查看
背景:想在自己的本地xp系统上配置solr服务,在solr交流群187670960里找到篇文章
网上查找后从文章/article/1408266.html中找到解决方法
将tomcat/solr/collection1/conf/solrconfig.xml中的solr.clustering.enabled:true改为false再重启tomcat后访问一切正常
3. 安装solr 下载:http://www.apache.org/dyn/closer.cgi/lucene/solr/4.4.0 http://mirror.esocc.com/apache/lucene/solr/4.5.0/solr-4.5.0.zip 下载完成后直接解压至F:\solr 4. slor安装至tomcat a. 将f:\solr\examples下的slor文件夹复制到f:\tomcat 下面,作为solr的home目录 b. 将f:\solr\examples\webapps下的solr.war复制到tomcat的webapps目录下,war包在tomcat启动后会自动解压出来 c. 配置solr的data目录,打开f:/tomcat/solr/collection1/conf/solrconfig.xml,修改datadir: <!-- Data Directory Used to specify an alternate directory to hold all index data other than the default ./data under the Solr home. If replication is in use, this should match the replication configuration. --> <dataDir>${solr.data.dir:F:\tomcat\solr\data}</dataDir> d. 将solr.war注册给tomcat,在f:/tomcat/conf/Catalina/localhost/下创建solr.xml: <?xml version="1.0" encoding="UTF-8"?> <Context docBase="f:/tomcat/webapps/solr" debug="0" crossContext="true" > <Environment name="solr/home" type="java.lang.String" value="f:/tomcat/solr" override="true" /> </Context> e. 防止乱码的在tomcat/conf/server.xml中加入; <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/> f. 将F:\solr\example\lib\ext下的5个jar包和F:\solr\example\resources下的log4j放入tomcat的lib目录下 g. 重新启动tomcat,浏览器中输入:http://localhost:8080/solr:最后的时候会报一个错误Error loading class 'solr.clustering.ClusteringComponent
网上查找后从文章/article/1408266.html中找到解决方法
将tomcat/solr/collection1/conf/solrconfig.xml中的solr.clustering.enabled:true改为false再重启tomcat后访问一切正常
相关文章推荐
- solr4.5 mmseg4j 分词器配置
- solr4.5配置tomcat7
- solr4.5 schema.xml配置文件
- solr4.5 schema.xml配置文件
- solr4.5 schema.xml配置文件
- solr4.5安装配置 linux+tomcat6.0+mmseg4j-1.9.1分词
- solr4.5配置中文分词器mmseg4j
- solr4.5部署到tomcat以及solr4.5配置中文分词器mmseg4j
- solr4.5配置中文分词器mmseg4j
- 关于 solr 4.5 的配置和使用
- solr4.5配置tomcat7
- solr4.5 schema.xml配置文件
- solr4.5配置中文分词器mmseg4j
- solr4.5 mysql 配置数据导入
- solr cloud 在集群中的配置,以及与中文分词, tomcat等等的整合(1)
- Solr学习总结(八)IK 中文分词的配置和使用
- Solr配置,schema.xml的配置,以及中文分词
- 在Eclipse中使用tomcat配置solr
- Solr主要配置文件之schema.xml。
- Solr主要配置文件之solrconfig.xml。