How to stop/shut down an elasticsearch node?

前端 未结 11 2018
忘掉有多难
忘掉有多难 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:04

    If you just want to apply new config you don't need to shut it down.

    $ sudo service elasticsearch restart

    But if you want to shut it down anyway:

    $ sudo service elasticsearch stop

    OR

    $ sudo systemctl stop elasticsearch.service

    $ sudo systemctl restart elasticsearch.service

    Docker:

    docker restart

提交回复
热议问题