solr 4.6的安装配置
2016-06-13 14:48
344 查看
从网上看了很多资料,很多都是老的。自己也算是结合着弄出来了。
1、下载的准备工作
tomcat8、solr4.6 具体的下载自己去找去吧。或者后期我在提供。
2、开始配置
tomcat路径:E:\tomcat8\apache-tomcat-8.0.30
solr4.6路径:E:\Program Files\solr-4.6.0
首先,将solr目录中的example/webapps中的solr.war复制到tomcat下的webapps中,然后启动tomcat。之后关闭tomcat。
接着,上面启动后会报错,不用管。在tomcat安装目录下添加conf/Catalina/localhost/solr.xml文件,内容如下
接着在e盘中新建solr_home文件夹,并将solr.war复制过来,之后在把E:\Program Files\solr-4.6.0\example中的solr复制到solr_home中
最后就是复制solr中的 example/lib/ext目录中的jar包和 example/resources/log4j.properties到tomcat目录下的lib中即可,这时候启动tomcat,在
流蓝器中输入http://localhost:8080/solr
看到solr页面即可
webapps
1、下载的准备工作
tomcat8、solr4.6 具体的下载自己去找去吧。或者后期我在提供。
2、开始配置
tomcat路径:E:\tomcat8\apache-tomcat-8.0.30
solr4.6路径:E:\Program Files\solr-4.6.0
首先,将solr目录中的example/webapps中的solr.war复制到tomcat下的webapps中,然后启动tomcat。之后关闭tomcat。
接着,上面启动后会报错,不用管。在tomcat安装目录下添加conf/Catalina/localhost/solr.xml文件,内容如下
<?xml version="1.0" encoding="UTF-8"?> <Context docBase="E:/solr_home/solr.war" debug="0" crossContext="true" > <Environment name="solr/home" type="java.lang.String" value="E:/solr_home/solr" override="true" /> </Context>
接着在e盘中新建solr_home文件夹,并将solr.war复制过来,之后在把E:\Program Files\solr-4.6.0\example中的solr复制到solr_home中
最后就是复制solr中的 example/lib/ext目录中的jar包和 example/resources/log4j.properties到tomcat目录下的lib中即可,这时候启动tomcat,在
流蓝器中输入http://localhost:8080/solr
看到solr页面即可
webapps
相关文章推荐
- 关于lua table.getn()和#
- Suddenly error='Cannot allocate memory' (errno=12) [closed]
- Android开发环境安装和配置图文教程
- 将 左外连接 后查询的对象 转成自定义对象
- git和TortoiseGit使用
- Android开发中关于“invalid symbol”的错误
- 快启动U盘在GPT分区下安装win7x64位系统教程
- 3Sum
- 关于Java类加载双亲委派机制的思考(附一道面试题)
- 磁盘调度算法
- Java使用Socket读写邮件服务器示例
- JAVA CLOB作为参数传给ORACLE后台
- 手机端页面自适应解决方案-rem布局
- GCC 编译详解
- 10进制整型转16进制整型?
- [置顶] 常用的数据标准化方法
- Android APP被关闭后无法收到推送消息(尝试)
- SVN版本控制与分支设置
- BZOJ3158 千钧一发
- WindowManager.LayoutParams.type属性