how to restart elasticsearch node
sudo service elasticsearch.service status -l
sudo service elasticsearch.service restart
Restart Elasticsearch services ^^
how to restart elasticsearch node
sudo service elasticsearch.service status -l
sudo service elasticsearch.service restart
Restart Elasticsearch services ^^
bash script to restart elasticsearch
#!/bin/sh
RESTART="/etc/init.d/elasticsearch restart"
SERVICE="elasticsearch"
LOGFILE="/var/log/elasticRestart.log"
ps -ef | grep elastic | grep -v grep > /dev/null
if [ $? -eq 0 ]
then
/etc/init.d/elasticsearch restart >> /var/log/elasticRestart.log
echo "Elasticsearch relaunched at $(date)" >> /var/log/elasticRestart.log
else
echo "Elasticsearch is running $(date)" >> /var/log/elasticRestart.log
fi
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us