Es Restart Auto-start

Source: Internet
Author: User

If this ES plugin is available on the server, it supports the use of parameters, specifying that ES is run in the background or foreground, and supports start, stop, and restart ES services (the default ES script can only be elasticsearch-servicewrapper by CTRL + C Close es). Use this method to Download the service folder to Https://github.com/elasticsearch/elasticsearch-servicewrapper and place it in the ES bin directory. Here is the command collection:
Bin/service/elasticsearch +
Console running ES in the foreground
Start runs in the background es
Stop Stop ES
Install enables ES to start automatically when the server starts as a service
Remove starts automatically when cancel starts

There is a elasticsearch.conf configuration file under the service directory, the main is to set some Java operating environment parameters, the more important of which is the following

Parameters:

#es的home路径, you don't have to use the default value to
Set.default.es_home=<path to ElasticSearch home>

#分配给es的最小内存
set.default.es_min_mem=256

#分配给es的最大内存
set.default.es_max_mem=1024


# Startup Wait Time-out (in seconds)
wrapper.startup.timeout=300

# time to close wait timeout (in seconds)

wrapper.shutdown.timeout=300

# Ping time-out (in seconds)

wrapper.ping.timeout=300

Es Restart Auto-start

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.