How to stop/shut down an elasticsearch node?

前端 未结 11 1999
忘掉有多难
忘掉有多难 2021-01-29 22:34

I want to restart an elasticsearch node with a new configuration. What is the best way to gracefully shut down an node?

Is killing the process the best way of shutting t

11条回答
  •  不知归路
    2021-01-29 23:01

    Just in case you want to find PID of the instance and kill the process, assuming that the node is listening to port 9300 (the default port) you can run the following command :

    kill -9  $(netstat -nlpt | grep 9200 | cut -d ' ' -f 58 | cut -d '/' -f 1)
    

    You may have to play with the numbers in the above-mentioned code such as 58 and 1

提交回复
热议问题