How to stop solr with command line

后端 未结 5 1664
囚心锁ツ
囚心锁ツ 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:45

    You could run (where 8983 is the default solr port)

    lsof -i :8983
    

    which will return PID#, then use

    kill -9 PID#
    

    to kill that pid (run it without the hash)

提交回复
热议问题