1、官网上下载solr(http://lucene.apache.org/solr/)和tomcat(http://tomcat.apache.org/)

  测试用到的版本:solr-6.2.1、apache-tomcat-8.0.36

2、安装JDK,版本必须为1.8,测试用到的的版本为jdk1.8.0_102。

3、解压solr-6.2.1.zip。

4、将solr-6.2.1\server\solr-webapp\webapp目录拷贝到tomcat下的webapps目录下,将将拷贝后的目录重新命名为solr(必须这样命名,跟solr/home配置查询有关)。

5、将solr-6.2.1\server\resources\log4j.properties拷贝到tomcat下的\webapps\solr\WEB-INF\classes目录,classes文件夹可自己创建。

  最好将日志配置文件修改一下日志位置,让日志生成到tomcat/logs/solr目录下。

  将上面红色部分改为:log4j.appender.file.File=${catalina.home}/logs/solr/solr.log。${catalina.home}表示当前运行的tomcat目录。

6、将solr-6.2.1\server\lib\ext目录的jar拷贝到tomcat下的\webapps\solr\WEB-INF\lib目录中。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAucAAADOCAIAAAASWTtIAAAgAElEQVR4nO2d728b953n9Qe0ftInUbF9Vnh92yd7a2yuJ6Dd9YMCuYu7erCoKzuxKyy8TK5n2QfDKSo5ShXDDiOj9DFn1amhs8O4aSPYRqSzJTV0TtXaZzdKUQMhYhmSKVGkSWtIZmizpqhsVBVzD4ac+f6aH6So4XfE9wuEIH7n+1uj+b7n8/nMfNs0AAAAAAA/0NbsDgAAAAAAuAKqBQAAAAD+AKoFAAAAAP4AqgUAAAAA/gCqBQAAAAD+oO1BfAEffPDBBx988MFH/g9sLQAAAADwB1AtAAAAAPAHUC0AAAAA8AdQLQAAAADwB1AtAAAAAPAHbfMAAAAAAH6gTltL6qkvP/kyPg4fAAAAQFrqVy3Ff2/yp9Y+6KplZa2FPrWOF6oFAACAzEC1bOUPVAsAAICtBFTLVv5AtQAAANhKNFK1XB4bP3U6VPx3TSmu/qBrX2JZFaqHxLL6t3+3kz+aWFafaW9va2vbtm3bnT/G9MRTp0PPtLcLq2qsagmeDgVPh/j0q2PjLx7oZnJeHRu3qmfmbuzH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+yIvNfwfpmRMZGWFraTJSq5bOQ6/H43FFUZaWlhYWFuZFPHr0SFGUeDzeeeh1prgZLmtqlUapFqp6yiRiGlbEzwu5VS1k9fz7VKzq1Ghdwg/E5VHarFIZTyAAW0vT4AzynPmDvYw6qxbrJ3tqy+PqKBdbaq9ahPGjXsDYfiqeHwvtwfWP+3MYCcFIhLVZVQNGuAzZaLAnEuFfb0MsqbazU5lrUbfYVupXLU37C20AYh4sTl3O6VrJSv//+WS4WxSpVctzgVeXlpay2eyVjz4ORsYPh37Df/L5vKqqS0tLzwVebVinG7Uo27tnZF76Ze4baBBuzNwwhQMApEJq1dJ1LHh5bCKbzSq25PP5y2MTXceCzjW6YwMvho2HOyhjjINokfWxYZn7BhoERAsAwH9IrVrGpu4c7D/znRePOn4O9p8Zm7rTgO5W/DIbe5UcEXG7Wa1sHjL3DQAAQGsjtWoBAAAAADCAagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP4BqAQAAAIA/gGoBAAAAgD+AagEAAACAP/j/HSbm/gKbp1kAAAAASUVORK5CYII=" alt="" />

7、将solr-6.2.1\server\solr目录拷贝到其他任意目录,并重新命名为solrhome,如D:\solrhome。

8、修改tomcat目录下的webapps\solr\WEB-INF\web.xml,取消下面代码的注释,并将env-entry-value值改为上一步的地址。

  Windows下配置实例:

<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>D:/solrhome</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>

  CentOS下配置实例:

<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/home/solrhome</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>

9、登录http://localhost:8080/solr/index.html即可访问到solr。

  注意当前版本访问http://localhost:8080/solr/会出错,应该是个一个bug。

说明:按照官网描述,也可以将日志系统替换成其他日志系统,如slf4j、log4j2等。但从源码上分析,换成lo4j2后,前台界面上的Logging操作不能将后台日志显示到前台界面上来。

Tomcat下安装solr6.x的更多相关文章

  1. tomcat 下安装 MantisBT

    环境 OS:win8.1 up1 64bit tomcat :9.0.0 64bit php: php-7.1.7-nts-Win32-VC14-x64.zip postgres: postgresq ...

  2. tomcat下安装jenkins

    参考网址:http://www.cnblogs.com/edward2013/p/5269465.html 5.安装Jenkins 方法1: jenkins.war下载地址:   http://mir ...

  3. redhat7.6 Tomcat下安装 Jenkins 安装wget文件下载

    安装wget下载工具 # 查看是否安装wget rpm -qa | grep wget #使用yum安装wget yum -y install wget 使用wget工具下载到  /usr/share ...

  4. mac下安装及配置tomcat

    mac下的软件不像windows下的程序那样写注册表,对于tomcat的安装来说,在mac下是名符其实的绿色软件,具体操作如下: 1.到 apache官方主页 下载完整 tar.gz文件包.(没有专门 ...

  5. mac 下JDK 与 tomcat 的安装与配置

    一.Mac下JDK的安装 1.先检测Mac是否已经安装过JDK,在终端中输入java 或者 javac 显示说明,表明已经安装过JDK,JDK版本查询终端键入java -version,终端会返回JD ...

  6. Linux下安装Tomcat服务器和部署Web应用

    一.上传Tomcat服务器

  7. 从零开始学 Java - Windows 下安装 Tomcat

    谁都想分一杯羹 没有一个人是真正的无私到伟大的,我们试着说着做自己,与人为善,世界和平!殊不知,他们的真实目的当你知道后,你会被恶心到直摇头并下意识地迅速跑开,下辈子都不想见到他.不过,他没错,你也没 ...

  8. 从零开始学 Java - CentOS 下安装 Tomcat

    生活以痛吻我,我仍报之以歌 昨天晚上看到那个冯大辉老师的微信公众号,「小道消息」上的一篇文章,<生活以痛吻我,我仍报之以歌>.知乎一篇匿名回答,主题为<冯大辉到底是不是技术大牛,一个 ...

  9. Linux下安装和配置JDK与Tomcat(升级版)

    在这个版本 Linux下安装和配置JDK与Tomcat(入门版) 的基础上优化升级 1.下载相关软件 apache-tomcat-6.0.37.tar.gz jdk-6u25-linux-i586-r ...

随机推荐

  1. 修改git commit默认触发的编辑器

    使用git commit会自动启动编辑器编辑本次提交的comment,git默认配置是GNU nano,但是很多人不是很熟悉(我就是),其实这个是可以自行配置的. 编辑制定代码库的.git/confi ...

  2. c# 相对路径的一些资料

    1.获取和设置当前目录的完全限定路径. string str = System.Environment.CurrentDirectory; Result: C:\xxx\xxx 2.获取启动了应用程序 ...

  3. stl 比较和boost LessThanComparable

    C++ STL的几种常用“比较”概念简述   在C++的现行标准(C++ 98)中,由于没有类似“接口”这样的东西,我们在泛型编程时往往只能对模板类型作一些假设,要求其符合某个需求清单,也就是属于某个 ...

  4. HttpClient_001_初步实现项目01的servlet,与项目02的servlet,之间数据访问

    HttpClient_001_初步实现项目01的servlet,与项目02的servlet,之间数据访问 代码下载地址: http://download.csdn.net/detail/poiuy19 ...

  5. 创建和导出SVG的技巧(转载)

    本文转载自: 创建和导出SVG的技巧

  6. 让我们的svg起飞,兼容ie9的神器

    <svg xmlns="http://www.w3.org/2000/svg" width="320px" height="200px" ...

  7. oracle 面试题

    1.对数据库SQL2005.ORACLE熟悉吗?   SQL2005是微软公司的数据库产品.是一个RDBMS数据库,一般应用在一些中型数据库的应用,不能跨平台.   ORACLE是ORACLE公司的数 ...

  8. :radio :checkbox

    匹配所有单选按钮   示例 描述: 查找所有单选按钮 HTML 代码: <form> <input type="text" /> <input typ ...

  9. Css Study - Top Menu in Header 横向间隔的菜单

    .shortcut ul li { display: inline; } CSS <style> ol, ul { list-style: none; } html, body, ul, ...

  10. php + Bootstrap-v3-Typeahead 自动完成组件的使用

    Bootstrap 中的 Typeahead 组件就是通常所说的自动完成 AutoComplete,类似百度.谷歌等搜索提示:输入关键词出现相应的下拉列表数据. 是Bootstrap-3-Typeah ...