0

I am now trying to install ES on windows 2016 Nano server, it works when start ES in command line, but failed to start ES as windows service, maybe due to some changes on Nano server, but I have no hint at all why it didn't work.

Anyone has experience on installing ES on Nano server?

or Where can I get the source code of ES windows service, elasticsearch-windows-x64.exe? It could be helpful to troubleshoot the root cause.

BozoJoe
  • 6,117
  • 4
  • 44
  • 66
Youxu
  • 1,050
  • 1
  • 9
  • 34
  • What logs are saying? – Vova Bilyachat Nov 11 '16 at 02:40
  • Actually, when I run "service.bat install", the output is "installed successfully", BUT the service was not actually installed. Then I manually registered the service using sc.exe. But after I start the service, it just said "the service could not be started due to internal error". I did not find way to get event log on Nano server yet. – Youxu Nov 11 '16 at 03:14
  • 1
    well first of all which version you try to install? and second look to ES folder there is logs folder where ES holds logs – Vova Bilyachat Nov 11 '16 at 03:15

1 Answers1

0

I haven't got a chance to test it on Nano Server 2016, but I've installed ES 5.1.2 + JDK1.8.0_121 on Windows 2016 Server Core successfully and was able to start the service.

  1. Install JDK and set SYSTEM ENV with setx -m JAVA_HOME "C:\PROGRA~1\Java\jdk1.8.0_121" command. It doesn't work with user level ENV variable such as using set JAVA_HOME=xxx.
  2. unzip ES to c:\elk\elasticsearch
  3. Edit the elasticsearch.yml config file, config the Cluster and Node names and save it
  4. install the ES service C:\elk\elasticsearch\bin>elasticsearch-service.bat install
  5. start the ES service C:\elk\elasticsearch\bin>elasticsearch-service.bat start

Reference:

Marcus Zheng
  • 11
  • 1
  • 3