How to stop solr with command line

后端 未结 5 1557
囚心锁ツ
囚心锁ツ 2021-02-01 05:52

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         


        
5条回答
  •  执笔经年
    2021-02-01 06:52

    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.

提交回复
热议问题