An ad-free and cookie-free website.
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.
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.
solr stop command is one of 12
commands within the main
solr stop command itself has 4
options, also known as parameters.
The syntax for running
solr stop is
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
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 script can be run using the
./solr from within
When using Windows, the solr script is called using
solr stop command the
following options (parameters) are optional.
||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.|
||Secure the stop command with the key password solrrocks.||solrrocks|
||Stop a Solr instance on a specific port number.||None|
||Stop all Solr server instances running on the host.||None|
||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.
A newly-updated free resource. Connect and refer a friend today.