I am trying to install elasticsearch 5.4. But elasticsearch 2.3.3 is already installed in my system. Without touching the old settings, I need to install new 5.4 version. Already a service named
elasticsearch 2.3.3(elasticsearch-service-64) is in Services(stopped for now). How to add a new service from ES5.4 version.
in command prompt I gave
c:\elasticsearch-{version}bin>service install
but it shows
'service' is not recognized as an internal or external command,
operable program or batch file.
then I tried
c:\elasticsearch-{version}bin>elasticsearch-service install
Installing service : "elasticsearch-service-x64"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_91"
Failed installing 'elasticsearch-service-x64' service
log
[2017-05-17 03:41:57] [info] [10272] Commons Daemon procrun (1.0.15.0 64-bit) started
[2017-05-17 03:41:57] [info] [10272] Service elasticsearch-service-x64 name Elasticsearch 5.4.0 (elasticsearch-service-x64)
[2017-05-17 03:41:57] [error] [10272] The specified service already exists.
[2017-05-17 03:41:57] [error] [10272] Failed installing 'elasticsearch-service-x64' service
[2017-05-17 03:41:58] [error] [10272] The specified service already exists.
[2017-05-17 03:41:58] [error] [10272] Commons Daemon procrun failed with exit value: 8 (Failed to install service)
[2017-05-17 03:41:58] [error] [10272] The specified service already exists.
How do I create a new service for ES 5.4?