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例子,名称是cloudbin/solr restart
重启项目