/ factorpad.com / tech / solr / reference / solr-stop.html
An ad-free and cookie-free website.
Beginner
Recently, many developers are evaluating alternatives to Google Custom Search or Amazon CloudSearch. The Apache Lucene library with front-end tools from Apache Solr and Elasticsearch provide alternatives for those looking to create a website search engine or expand their enterprise search capabilities.
During this evaluation period, typically in a local test environment,
developers need to stop Solr. The
solr stop
command offers a fast way
to stop the Solr service using a short list of settings.
The solr stop
command will stop the
Solr server as specified. It is a good idea to use the
solr status
command first to review
the running instances of Solr.
The solr stop
command is one of 12
commands within the main solr
script.
The solr stop
command itself has 4
options, also known as parameters.
The syntax for running solr stop
is
as follows.
The list of 4 options including default values are noted in the table below.
This syntax assumes your current working directory is
the $SOLR_HOME directory for Solr, which for version 7
would be ~/solr-7.0.0/
in
standalone mode for a local installation. When running in a production
environment the directory locations may differ.
So the path to the location of the solr script is:
~/solr-7.0.0/bin/solr
. Alternatively,
the solr
script can be run using the
convention ./solr
from within
the bin
directory.
When using Windows, the solr script is called using
solr.cmd
.
For the solr stop
command the
following options (parameters) are optional.
Syntax | Purpose | Default |
---|---|---|
bin/solr stop without options |
Stop Solr with default options. | If one instance is running it will stop. For multiple instances it will prompt the user to specify the port number to stop. |
-k <key> |
Secure the stop command with the key password solrrocks. | solrrocks |
-p <port> |
Stop a Solr instance on a specific port number. | None |
-all |
Stop all Solr server instances running on the host. | None |
-V |
Provide verbose messaging about actions taken from the bin/solr script | None |
The following command will stop solr using the specified key solrrocks.
The following command stops Solr only on port 8984.
The following command will stop all instances of Solr on the host.
The following command will stop Solr and provide verbose messages of each step.
From the command line you can access additional help on the stop
command by appending
-help
after the command.
FactorPad offers Apache Solr Search content in both tutorials and reference.
Our educational content is growing and we would love for you to be part of it. Subscribe and follow for reminders.
/ factorpad.com / tech / solr / reference / solr-stop.html
A newly-updated free resource. Connect and refer a friend today.