ElasticSearch installed as a Windows service

At present, I operate Elasticsearch in the windows environment, and I like to use the command line to 
start elasticsearch directly in the bin directory of elasticsearch through cmd. If 
the cluster name is started directly, the default name will be elasticsearch, and the node name will be randomly generated. 
To stop, press Ctrl+C directly on the cmd interface. 
In fact, we can also set elasticsearch as a windows system service: 
There is an elasticsearch-service.bat 
in the bin directory of elasticsearch and execute it in the bin directory:

elasticsearch-service.bat install


Then in the system service, you can see that Elasticsearch has become a system service. 

You can also execute these commands after elasticsearch-service.bat 
install: Install the Elasticsearch service 
remove: Remove the installed Elasticsearch service (stop the service if started) 
start: Start the Elasticsearch service (if installed) 
stop: Stop the service (if started) 
manager : start GUI to manage installed services

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325002867&siteId=291194637