博客
关于我
solr(二)windows安装及运行solr
阅读量:387 次
发布时间:2019-03-05

本文共 1371 字,大约阅读时间需要 4 分钟。

这个其实没啥可写的。但是有个坑我觉得需要记录一下。

Solr是使用java开发的,运行需要使用java环境jdk。我是在oracle官网下载的。链接如下:

这里下载的版本是13.0.2,理论上我觉得是没有问题的,环境变量啥的,我也配置完了,但是运行的时候报错,告诉我:

ERROR: Java 1.8 or later is required to run Solr. Current Java version is: 13.0.2

不是吧,13.0.2是比1.8大吧,咋能不对呢。

行吧,既然你说版本最低限制为1.8,那就装个1.8的jdk试试呗。

下载地址:

下载之后,装机,配置环境变量。运行,好了,配置成功。运行也没有问题。

接下来我们开启solr:

进入solr下的bin目录,在这里打开cmd(命令行)

执行

Solr -help

输出如下内容:

Usage: solr COMMAND OPTIONS       where COMMAND is one of: start, stop, restart, healthcheck, create, create_core, create_collection, delete, version, upconfig, downconfig    Standalone server example (start Solr running in the background on port 8984):      solr start -p 8984    SolrCloud example (start Solr running in SolrCloud mode using localhost:2181 to connect to Zookeeper, with 1g max heap size and remote Java debug options enabled):      solr start -c -m 1g -z localhost:2181 -a "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044"  Pass -help after any COMMAND to see command-specific usage information,  such as:    solr start -help or solr stop -help

我们可以看到其中是有启动solr的命令。

我们输入命令启动solr:

首先进入solr根目录下的bin目录中:

执行命令:

solr start -p 8984

我们在浏览器中输入:http://localhost:8984

即可看到下方的页面:

在这里插入图片描述

这里放上几条solr常用的命令:

solr start –p 端口号 #单机版启动solr服务solr restart –p 端口号 #重启solr服务solr stop –p 端口号 #关闭solr服务

这篇主要是记录下,上边jdk安装的坑,其余可能就没有什么了。具体的其他操作命令,再说。

有好的建议,请在下方输入你的评论。

欢迎访问个人博客

欢迎访问小程序:

在这里插入图片描述

转载地址:http://klhwz.baihongyu.com/

你可能感兴趣的文章
NN&DL4.1 Deep L-layer neural network简介
查看>>
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named 'pandads'
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>