mac学习搭建solr8.x - 本机安装单机solr服务

1.官网下载solr-8.0.0.zip包,下载链接:http://www.apache.org/dyn/closer.lua/lucene/solr/8.0.0,个人觉得还是这种类似windows上绿色安装的包好用,比起mac上使用brew进行安装或者wget,这种方式很容易就能安装到windows、linux、mac平台上,而且配置大同小异。

2.保存到本地任意目录,解压后目录如下:

3.打开终端,cd到解压目录/solr-8.0.0/bin下,执行

solr start

即可以默认端口启动solr控制台,浏览器输入地址:

http://localhost:8983/solr/#/

看到如下界面即solr启动成功 

4. solr常用启动命令

bin/solr start -help 查看start帮助
bin/solr start 启动单机版
bin/solr start -f 前台启动
bin/solr start -p 8984 指定端口启动
bin/solr start -cloud 启动分布式版本
bin/solr start -e cloud -noprompt -e 启动一个现有的SolrCloud例子,名称是cloud
bin/solr restart 重启项目

猜你喜欢

转载自blog.csdn.net/csdn_avatar_2019/article/details/89402972
今日推荐