Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop solr with command line

Tags:

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 

what is Xmx1024m ?

and where i will find DSTOP.KEY ?

Please tell proper procedure to start and stop solr by command line.

like image 845
XMen Avatar asked Nov 02 '11 05:11

XMen


People also ask

How do I stop Solr?

Stopping Solr You can stop Solr using the stop command. This command stops Solr, displaying a message as shown below. Sending stop command to Solr running on port 8983 ... waiting 5 seconds to allow Jetty process 6035 to stop gracefully.

How do I start Solr from command prompt?

If you are running Windows, you can start Solr by running bin\solr. cmd instead. This will start Solr in the background, listening on port 8983. When you start Solr in the background, the script will wait to make sure Solr starts correctly before returning to the command line prompt.

How do I restart Solr?

When using VuFind 3.0 or newer, you can restart Solr from the command line in Windows: At a command prompt, switch to your VuFind directory. Type: solr restart.


1 Answers

solr stop -all # Stops all the ports

solr stop -p 8983 # Stop the particular port

If it shows the error ERROR: Port 8983 is already being used by another process., kill the console window which runs Solr by Ctrl-C and then try one of the above options. Because killing the console window does not stop the service.

like image 152
chmodsss Avatar answered Sep 17 '22 18:09

chmodsss