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