一步一步学solr--windows下solr5.4.0环境搭建
原创GW_Cheng 最后发布于2016-01-05 14:43:09 阅读数 4441 收藏
展开
第一步:下载Solr
下载地址Solr5.4.0官方下载地址

http://apache.opencas.org/lucene/solr/5.4.0/

http://archive.apache.org/dist/lucene/solr/5.5.2/

第二步:解压
将下载的solr-5.5.0.zip解压,我将其解压到D盘根目录下

 

第三步:启动
从命令行进入Solr安装目录下的bin目录,输入如下命令

solr start -e cloud -noprompt
1
将会看到如下的启动信息!表示Solr启动成功

 


用浏览器打开

http://localhost:8983/solr/

将会看到如下的界面,表示Solr启动成功

 

第四步:索引数据(indexing data)
返回在solr目录

 

输入如下命令

java -classpath /solr-5.4.0/dist/solr-core-5.4.0.jar -Dauto=yes -Dc=gettingstarted -Ddata=files org.apache.solr.util.SimplePostTool example/exampledocs/
1
该命令会将example/exampledocs下的文件添加到solr中(除了post.jar和test_utf8.sh)

 

 

接下来就可以通过管理控制台搜索关键字了

 

Solr环境搭建就先到这里!

参考文献:

1http://www.importnew.com/12607.html

2https://cwiki.apache.org/confluence/display/solr/Post+Tool#PostTool-Windows

3http://lucene.apache.org/solr/quickstart.html
————————————————
版权声明:本文为CSDN博主「GW_Cheng」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/frankcheng5143/article/details/50462495

相关文章:

  • 2021-10-19
  • 2021-10-21
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2021-09-17
  • 2021-05-21
  • 2021-11-23
  • 2021-08-30
  • 2021-06-24
相关资源
相似解决方案