如何使用命令行停止 solr [英] How to stop solr with command line

查看:41
本文介绍了如何使用命令行停止 solr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过命令停止 solr 所以如果找到这篇文章

I want to stop solr by command so if find this article

http://rc98.net/solrinit

echo "Stopping Solr"
        cd $SOLR_DIR
        java -Xmx1024m -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -jar start.jar --stop

什么是 Xmx1024m?

what is Xmx1024m ?

我在哪里可以找到 DSTOP.KEY ?

and where i will find DSTOP.KEY ?

请通过命令行告诉正确的程序来启动和停止 solr.

推荐答案

-XmX1024m - 是 java 参数并指定最大 java 堆大小,在您的情况下设置为 1 GB.

-XmX1024m - is the java parameter and specifies the maximum java heap size, which in your case is set to 1 GB.

stopkey 是启动时的密钥,它也必须出现在终止请求中以增强安全性.

stopkey is a secret key on startup which must also be present on the termination request to enhance security.

详细解释@http://docs.codehaus.org/display/JETTY/Securing+码头

示例 -

使用 Jetty 启动 solr -

Starting solr with Jetty -

java -DSTOP.PORT=8079 -DSTOP.KEY=mysecret -jar start.jar

使用 Jetty 停止 Solr -

Stopping Solr with Jetty -

java -DSTOP.PORT=8079 -DSTOP.KEY=mysecret -jar start.jar --stop

STOP.KEY 是在停止命令期间应该匹配的密钥.

the STOP.KEY is the secret key which should match during the stop command.

这篇关于如何使用命令行停止 solr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆