CentOS下ElasticSearch集群部署及调优(2)

case "$1" in
  start)
        start
  ;;
  stop)
        stop
  ;;
  status)
        status
  ;;
  restart)
        stop
        sleep 5
        start
  ;;
  *)
  echo "Usage: /etc/init.d/${NAME} {start|stop|restart}"
  exit 1
esac

exit 0

查看启动

netstat -tlnp | egrep '9200|9300'
service elasticsearch status

9、集群验证
curl :9200
curl :9200
curl :9200

ES主机1

CentOS下ElasticSearch集群部署及调优

ES主机2

CentOS下ElasticSearch集群部署及调优

ES主机3

CentOS下ElasticSearch集群部署及调优

Linux公社的RSS地址https://www.linuxidc.com/rssFeed.aspx

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/dd6b96fbf76e983915aaf62873b03e7e.html