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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With