linux 系统安装 solr,以及各版本的下载地址

Solr是一个独立的企业级搜索应用服务器,它对外提供类似于Web-service的API接口。用户可以通过http请求,向搜索引擎服务器提交一定格式的XML文件,生成索引;也可以通过Http Get操作提出查找请求,并得到XML格式的返回结果。

Solr的目标是打造一款企业级的搜索引擎系统,它是一个搜索引擎服务,可以独立运行,通过Solr可以非常快速的构建企业的搜索引擎,通过Solr也可以高效的完成站内搜索功能。基于Lucene的全文搜索服务器,同时对其进行了扩展,提供了比Lucene更为丰富的查询语言,同时实现了可配置、可扩展并对查询性能进行了优化,并且提供了一个完善的功能管理界面,是一款非常优秀的全文搜索引擎。

1. solr下载安装

solr各版本下载地址

这里我们选择6.5.0来安装,因为博主不知道为什么每次下载都失败,网速也不慢,可能是apache的限制问题吧!

所以博主找了一个csdn的下载地址,版本是6.5.1。解压后我们只用里边的solr-6.5.1.zip,然后解压即可。

然后进入到解压目录的bin目录,进行启动,如下所示:

sun:bin sun$ cd /Users/sun/Documents/solr-6.5.1/bin
sun:bin sun$ ll
total 344
drwxr-xr-x@ 3 sun  staff     96  4 21  2017 init.d/
-rwxr-xr-x@ 1 sun  staff  12601  4 20  2017 install_solr_service.sh*
-rwxr-xr-x@ 1 sun  staff   1255  4 20  2017 oom_solr.sh*
-rwxr-xr-x@ 1 sun  staff   8209  4 20  2017 post*
-rwxr-xr-x@ 1 sun  staff  65037  4 20  2017 solr*
-rwxr-xr-x@ 1 sun  staff  61034  4 20  2017 solr.cmd*
-rwxr-xr-x@ 1 sun  staff   6204  4 20  2017 solr.in.cmd*
-rwxr-xr-x@ 1 sun  staff   6950  4 20  2017 solr.in.sh*
sun:bin sun$ ./solr start
Waiting up to 180 seconds to see Solr running on port 8983 [\]
Started Solr server on port 8983 (pid=10708). Happy searching!
 
sun:bin sun$

使用 ./solr start 启动成功,我们来访问:http://localhost:8983/solr 访问没问题,安装成功!

2. 我们创建一个articles的集合(collection),collection和core是一个概念(后面我都会用collection或集合)

博主每次使用界面创建core都失败,这里呢,我们使用命令 ./solr create -c my_core 进行创建吧!  

sun:bin sun$ pwd
/Users/sun/Documents/solr-6.5.1/bin
sun:bin sun$ ./solr create -c my_core
 
Copying configuration to new core instance directory:
/Users/sun/Documents/solr-6.5.1/server/solr/my_core
 
Creating new core 'my_core' using command:
http://localhost:8983/solr/admin/cores?action=CREATE&name=my_core&instanceDir=my_core
 
{
  "responseHeader":{
    "status":0,
    "QTime":1740},
  "core":"my_core"}
 
 
sun:bin sun$
创建完毕,刷新solr服务,就可以看到。

相关阅读:

solr 6.5 配置中文分词 IK Analyzer

Java 对 solr 的增删改查,java源码

solr 增加账号密码,solr 6.5 配置用户名密码


版权属于: 技术客

原文地址: https://www.sunjs.com/article/detail/61e364975c074d2d8c707f176b7ed4e0.html

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。



  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值