I want to stop solr by command so if find this article
http://rc98.net/solrinit
echo \"Stopping Solr\" cd $SOLR_DIR java -Xmx1024m -DSTO
For local operation, you can kill the Solr server by pressing Ctrl-c in the console window in which you started Solr. Typically, this is safe enough for development and testing
Ctrl-c