solr部署

来源:互联网 发布:软件定义存储产品 编辑:程序博客网 时间:2024/05/02 00:53
今天在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.xmluncomment entry andedit like following(Exception SolrCore 'collection1' is notavailable due to init failure)

solr/homeC:\solr_home\solrjava.lang.String

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

中文自己去翻译,反正我是看懂了,也可以参考http://blog.csdn.net/lynnlovemin/article/details/12103343
0 0
原创粉丝点击