solr部署

今天在tomcat下面部署 solr,想玩下solr,但是总是部署不成功,后来在网上找了一份国外的帖子,照着上面做,部属成功了。下面把帖子发出来,供大家参考
原帖是:

Install Solr in Tomcat

Pre Requirements

1 – Machine with Windows OS (Windows 7,8,Xp.. ..etc)

2 – Java 6 or Above

3 - Solr 4.0.0 or Above

4 – Apache-tomcat 6 or Above.

Steps to get Solr up on Tomcat Server

1.Install Tomcat on your machine and make sure it is ready tostart.(Check using localhost:8080)

2.Install Solr4.0 distribution package apache-solr-4.0.0.zip andunzip it in your local directory like C:\apache-solr-4.0.0.

3.Make a folder with name solr-home in your local machine likeC:\solr_home.

4.Go back to the solr distribution package that you downloadedC:\apache-solr-4.0.0. Have a peek inside the Examples/solr("C:\solr-4.4.0\example\solr") folder. Copy all those files intothe C:\solr_home folder.(server shutting down exception willcome)

5.Look into C:\solr-home\solr and you will see two folders withname collection1 and bin, copy these two folders a step up toC:\solr_home.(if lib not copy "severe error filterstart" Exceptioncome)

6.Copy lib from C:\apache-solr-4.0.0\example\lib\ext SLF4J andlog4j.jar file to Tomcat Lib folder C:\Program Files\ApacheSoftware Foundation\Tomcat 6.0\lib ()

7.Copy apache-solr-4.0.war (rename to solr.war) from"C:\solr-4.4.0\dist" directory to webapps directory insideTomcat.(C:\Program Files\Apache Software Foundation\Tomcat6.0\webapps)

8.If tomact is already start then solr folder will create go to"C:\Program Files\Apache Software Foundation\Tomcat6.0\webapps\solr\WEB-INF\web.xml" edit web.xml uncomment entry andedit like following(Exception SolrCore 'collection1' is notavailable due to init failure)

solr/home
C:\solr_home\solr
java.lang.String

9.Start Tomcat and check localhost:8080/solr dashBoard willcome

中文自己去翻译,反正我是看懂了,也可以参考http://blog.csdn.net/lynnlovemin/article/details/12103343
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值