서비스 형식으로 Elasticsearch 시작
18465 단어 elasticsearchservice
Running as a Service on Windowsedit
On this page
Customizing service settings
Elasticsearch Reference: 5.0.0-alpha22.3 (current) 2.22.1 2.01.7 1.61.5 1.41.3 0.90
Getting Started
Setup
Configuration
Running as a Service on Linux
Running as a Service on Windows
Directory Layout
Repositories
Upgrading
Breaking changes
API Conventions
Document APIs
Search APIs
Aggregations
Indices APIs
cat APIs
Cluster APIs
Query DSL
Mapping
Analysis
Modules
Index Modules
Testing
Glossary of terms
Release Notes
Windows users can configure Elasticsearch to run as a service to run in the background or start automatically at startup without any user interaction. This can be achieved through
service.bat
script under bin/
folder which allows one to install, remove, manage or configure the service and potentially start and stop the service, all from the command-line. c:\elasticsearch-2.2.1\bin>service
Usage: service.bat install|remove|start|stop|manager [SERVICE_ID]
The script requires one parameter (the command to execute) followed by an optional one indicating the service id (useful when installing multiple Elasticsearch services).
The commands available are:
install
Install Elasticsearch as a service
remove
Remove the installed Elasticsearch service (and stop the service if started)
start
Start the Elasticsearch service (if installed)
stop
Stop the Elasticsearch service (if started)
manager
Start a GUI for managing the installed service
Note that the environment configuration options available during the installation are copied and will be used during the service lifecycle. This means any changes made to them after the installation will not be picked up unless the service is reinstalled.
Based on the architecture of the available JDK/JRE (set through
JAVA_HOME
), the appropriate 64-bit(x64) or 32-bit(x86) service will be installed. This information is made available during install: c:\elasticsearch-{version}bin>service install
Installing service : "elasticsearch-service-x64"
Using JAVA_HOME (64-bit): "c:\jvm\jdk1.8"
The service 'elasticsearch-service-x64' has been installed.
While a JRE can be used for the Elasticsearch service, due to its use of a client VM (as oppose to a server JVM which offers better performance for long-running applications) its usage is discouraged and a warning will be issued.
Customizing service settingsedit
There are two ways to customize the service settings:
Manager GUI
accessible through
manager
command, the GUI offers insight into the installed service including its status, startup type, JVM, start and stop settings among other things. Simply invoking service.bat
from the command-line with the aforementioned option will open up the manager window: Customizing
service.bat
at its core,
service.bat
relies on Apache Commons Daemon project to install the services. For full flexibility such as customizing the user under which the service runs, one can modify the installation parameters to tweak all the parameters accordingly. Do note that this requires reinstalling the service for the new settings to be applied. There is also a community supported customizable MSI installer available:https://github.com/salyh/elasticsearch-msi-installer (by Hendrik Saly).
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
kafka connect e elasticsearch를 관찰할 수 있습니다.No menu lateral do dashboard tem a opção de connectors onde ele mostra todos os clusters do kafka connect conectados atu...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.