11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The stop command sends a STOP request to a running <strong>Solr</strong> node, which allows it to shutdown gracefully. The<br />

command will wait up to 5 seconds for <strong>Solr</strong> to stop gracefully and then will forcefully kill the process (kill -9).<br />

bin/solr stop [options]<br />

bin/solr stop -help<br />

Available Parameters<br />

Parameter Description Example<br />

-p Stop <strong>Solr</strong> running on the given port. If you are running more than one instance,<br />

or are running in <strong>Solr</strong>Cloud mode, you either need to specify the ports in<br />

separate requests or use the -all option.<br />

bin/solr<br />

stop -p<br />

8983<br />

-all Stop all running <strong>Solr</strong> instances that have a valid PID. bin/solr<br />

stop -all<br />

-k Stop key used to protect from stopping <strong>Solr</strong> inadvertently; default is "solrrocks". bin/solr<br />

stop -k<br />

solrrocks<br />

Informational<br />

Version<br />

The version command simply returns the version of <strong>Solr</strong> currently installed and immediately exists.<br />

$ bin/solr version<br />

X.Y.0<br />

Status<br />

The status command displays basic JSON-formatted information for any <strong>Solr</strong> nodes found running on the local<br />

system. The status command uses the SOLR_PID_DIR environment variable to locate <strong>Solr</strong> process ID files to<br />

find running <strong>Solr</strong> instances; the SOLR_PID_DIR variable defaults to the bin directory.<br />

bin/solr status<br />

The output will include a status of each node of the cluster, as in this example:<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!