一、Elasticsearch安装成windows服务
我的es所在路径为:D:ELK5.5.0elasticsearch-5.5.0
Java 安装目录为:C:Program FilesJava
1. 设置HAVA_HOME环境变量
2. cmd以管理员身份打开命令窗口
cd D:ELK5.5.0elasticsearch-5.5.0in
elasticsearch-service install
services.msc查看服务设为自动启动
二、把kibana安装成windows服务
CD D:ELK5.5.0
ssm-2.24win64
NSSM install Kibana5.5.0 D:ELK5.5.0kibana-5.5.0-windows-x86inkibana.bat
NSSM set Kibana5.5.0 AppDirectory D:ELK5.5.0kibana-5.5.0-windows-x86
NSSM set Kibana5.5.0 AppEnvironmentExtra "Java_HOME=C:Program FilesJavajdk1.8.0_101"
NSSM set Kibana5.5.0 AppStdout D:ELK5.5.0
ssm-2.24stdout.log
NSSM set Kibana5.5.0 AppStderr D:ELK5.5.0
ssm-2.24stderr.log
NSSM set Kibana5.5.0 stash AppStdoutCreationDisposition 2
NSSM set Kibana5.5.0 AppStderrCreationDisposition 2
NSSM set Kibana5.5.0 AppStopMethodSkip 6
net start Kibana5.5.0
三、windows下安装logstash5.5.0
CD D:ELK5.5.0
ssm-2.24win64
NSSM install Logstash5.5.0 D:ELK5.5.0logstash-5.5.0inlogstash.bat
NSSM set Logstash5.5.0 AppParameters agent --config D:ELK5.5.0logstash-5.5.0configlogstash.conf
NSSM set Logstash5.5.0 AppDirectory D:ELK5.5.0logstash-5.5.0
NSSM set Logstash5.5.0 AppEnvironmentExtra "Java_HOME=C:Program FilesJavajdk1.8.0_101"
NSSM set Logstash5.5.0 AppStdout D:ELK5.5.0
ssm-2.24logstash_stdout.log
NSSM set Logstash5.5.0 AppStderr D:ELK5.5.0
ssm-2.24logstash_stderr.log
NSSM set Logstash5.5.0 stash AppStdoutCreationDisposition 2
NSSM set Logstash5.5.0 AppStderrCreationDisposition 2
NSSM set Logstash5.5.0 AppStopMethodSkip 6
net start Logstash5.5.0