# Deploying ES as a Windows Service

**URL:** <https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301>\
**Category:** Elasticsearch\
**Created:** [April 27, 2011, 8:51am UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301 "2011-04-27T08:51:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nir\_Rubinstein](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@Nir\_Rubinstein](https://discuss.elastic.co/u/Nir_Rubinstein)\
**Post date:** [April 27, 2011, 8:51am UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/1 "2011-04-27T08:51:15Z")

</div>

Hello

I downloaded the ES service host and put it in the location it should  
be. After running the .bat file and finding that it didn't work, I  
modified a few paths to their absolute location (namely, the  
configuration file path) and everything works. I even manged to  
install the service on my windows machine via the -i parameter.  
The problem is that the service's path to executable points to the  
configuration file (which, of course, can't be run). Any idea what I'm  
doing wrong or how to alter the configuration?

Thanks!

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 27, 2011, 5:14pm UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/2 "2011-04-27T17:14:04Z")

</div>

Did not understand what the problem is.  
On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:

> Hello
> 
> I downloaded the ES service host and put it in the location it should  
> be. After running the .bat file and finding that it didn't work, I  
> modified a few paths to their absolute location (namely, the  
> configuration file path) and everything works. I even manged to  
> install the service on my windows machine via the -i parameter.  
> The problem is that the service's path to executable points to the  
> configuration file (which, of course, can't be run). Any idea what I'm  
> doing wrong or how to alter the configuration?
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![Rui\_Lopes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rui_lopes/32/2310_2.png) [@Rui\_Lopes](https://discuss.elastic.co/u/Rui_Lopes)\
**Post date:** [April 27, 2011, 8:02pm UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/3 "2011-04-27T20:02:04Z")

</div>

What command line are you using to install the service? Are you using  
[GitHub - elastic/elasticsearch-servicewrapper: A service wrapper on top of elasticsearch](https://github.com/elasticsearch/elasticsearch-servicewrapper)?

BTW, you might want to look at  
[GitHub - rgl/elasticsearch-setup: elasticsearch oss installer for windows.](https://github.com/rgl/elasticsearch-setup) as an alternative windows  
service and installer.

Best regards,  
Rui Lopes

On Wed, Apr 27, 2011 at 09:51, Nir Rubinstein [nirrub@gmail.com](mailto:nirrub@gmail.com) wrote:

> Hello
> 
> I downloaded the ES service host and put it in the location it should  
> be. After running the .bat file and finding that it didn't work, I  
> modified a few paths to their absolute location (namely, the  
> configuration file path) and everything works. I even manged to  
> install the service on my windows machine via the -i parameter.  
> The problem is that the service's path to executable points to the  
> configuration file (which, of course, can't be run). Any idea what I'm  
> doing wrong or how to alter the configuration?
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![Nir\_Rubinstein](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@Nir\_Rubinstein](https://discuss.elastic.co/u/Nir_Rubinstein)\
**Post date:** [April 28, 2011, 6:15am UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/4 "2011-04-28T06:15:18Z")

</div>

Simple = deployed as a WS, but in windows, the "Path to Executable"  
points to the "elasticsearch.conf" under"bin/service" - of course,  
since this is not an executable, it does not do anything.

Advice?

On Apr 27, 8:14 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Did not understand what the problem is.
> 
> On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:
> 
> > Hello
> 
> > I downloaded the ES service host and put it in the location it should  
> > be. After running the .bat file and finding that it didn't work, I  
> > modified a few paths to their absolute location (namely, the  
> > configuration file path) and everything works. I even manged to  
> > install the service on my windows machine via the -i parameter.  
> > The problem is that the service's path to executable points to the  
> > configuration file (which, of course, can't be run). Any idea what I'm  
> > doing wrong or how to alter the configuration?
> 
> > Thanks!

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 28, 2011, 10:35am UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/5 "2011-04-28T10:35:59Z")

</div>

You mean the path to executable for the windows service? Sorry, not a windows user, if thats the case, which paths did you change to make it work? Maybe something in addition needs to be set...  
On Thursday, April 28, 2011 at 9:15 AM, Nir Rubinstein wrote:

> Simple = deployed as a WS, but in windows, the "Path to Executable"  
> points to the "elasticsearch.conf" under"bin/service" - of course,  
> since this is not an executable, it does not do anything.
> 
> Advice?
> 
> On Apr 27, 8:14 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Did not understand what the problem is.
> > 
> > On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:
> > 
> > > Hello
> > 
> > > I downloaded the ES service host and put it in the location it should  
> > > be. After running the .bat file and finding that it didn't work, I  
> > > modified a few paths to their absolute location (namely, the  
> > > configuration file path) and everything works. I even manged to  
> > > install the service on my windows machine via the -i parameter.  
> > > The problem is that the service's path to executable points to the  
> > > configuration file (which, of course, can't be run). Any idea what I'm  
> > > doing wrong or how to alter the configuration?
> > 
> > > Thanks!

---

<div class="post-metadata">

**Author:** ![Nir\_Rubinstein](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@Nir\_Rubinstein](https://discuss.elastic.co/u/Nir_Rubinstein)\
**Post date:** [April 28, 2011, 12:20pm UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/6 "2011-04-28T12:20:29Z")

</div>

Yup, that's exactly what I mean.

I changed the path to the configuration file and the path of the ES  
home (int the .bat file) - both of them were set to their absolute  
values.

Thanks!

On Apr 28, 1:35 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> You mean the path to executable for the windows service? Sorry, not a windows user, if thats the case, which paths did you change to make it work? Maybe something in addition needs to be set...
> 
> On Thursday, April 28, 2011 at 9:15 AM, Nir Rubinstein wrote:
> 
> > Simple = deployed as a WS, but in windows, the "Path to Executable"  
> > points to the "elasticsearch.conf" under"bin/service" - of course,  
> > since this is not an executable, it does not do anything.
> 
> > Advice?
> 
> > On Apr 27, 8:14 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > Did not understand what the problem is.
> 
> > > On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:
> > > 
> > > > Hello
> 
> > > > I downloaded the ES service host and put it in the location it should  
> > > > be. After running the .bat file and finding that it didn't work, I  
> > > > modified a few paths to their absolute location (namely, the  
> > > > configuration file path) and everything works. I even manged to  
> > > > install the service on my windows machine via the -i parameter.  
> > > > The problem is that the service's path to executable points to the  
> > > > configuration file (which, of course, can't be run). Any idea what I'm  
> > > > doing wrong or how to alter the configuration?
> 
> > > > Thanks!

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 28, 2011, 10:06pm UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/7 "2011-04-28T22:06:05Z")

</div>

And it still does not start? Maybe there is a log somewhere (either the ES log, and if nothing there, maybe in the windows logging for services, I think there is one...)  
On Thursday, April 28, 2011 at 3:20 PM, Nir Rubinstein wrote:

> Yup, that's exactly what I mean.
> 
> I changed the path to the configuration file and the path of the ES  
> home (int the .bat file) - both of them were set to their absolute  
> values.
> 
> Thanks!
> 
> On Apr 28, 1:35 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > You mean the path to executable for the windows service? Sorry, not a windows user, if thats the case, which paths did you change to make it work? Maybe something in addition needs to be set...
> > 
> > On Thursday, April 28, 2011 at 9:15 AM, Nir Rubinstein wrote:
> > 
> > > Simple = deployed as a WS, but in windows, the "Path to Executable"  
> > > points to the "elasticsearch.conf" under"bin/service" - of course,  
> > > since this is not an executable, it does not do anything.
> > 
> > > Advice?
> > 
> > > On Apr 27, 8:14 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > > 
> > > > Did not understand what the problem is.
> > 
> > > > On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:
> > > > 
> > > > > Hello
> > 
> > > > > I downloaded the ES service host and put it in the location it should  
> > > > > be. After running the .bat file and finding that it didn't work, I  
> > > > > modified a few paths to their absolute location (namely, the  
> > > > > configuration file path) and everything works. I even manged to  
> > > > > install the service on my windows machine via the -i parameter.  
> > > > > The problem is that the service's path to executable points to the  
> > > > > configuration file (which, of course, can't be run). Any idea what I'm  
> > > > > doing wrong or how to alter the configuration?
> > 
> > > > > Thanks!

---

<div class="post-metadata">

**Author:** ![Nir\_Rubinstein](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@Nir\_Rubinstein](https://discuss.elastic.co/u/Nir_Rubinstein)\
**Post date:** [May 1, 2011, 7:23am UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/8 "2011-05-01T07:23:42Z")

</div>

Thanks Rui!!!

The first link worked as a charm!

got it installed and running on 2 machines now in 5 minutes - great  
work!

Thanks again!!!

On Apr 27, 11:02 pm, Rui Lopes [rui.godinho.lo...@gmail.com](mailto:rui.godinho.lo...@gmail.com) wrote:

> What command line are you using to install the service? Are you usinghttps://github.com/elasticsearch/elasticsearch-servicewrapper?
> 
> BTW, you might want to look athttps://github.com/rgl/elasticsearch-setupas an alternative windows  
> service and installer.
> 
> Best regards,  
> Rui Lopes
> 
> On Wed, Apr 27, 2011 at 09:51, Nir Rubinstein [nir...@gmail.com](mailto:nir...@gmail.com) wrote:
> 
> > Hello
> 
> > I downloaded the ES service host and put it in the location it should  
> > be. After running the .bat file and finding that it didn't work, I  
> > modified a few paths to their absolute location (namely, the  
> > configuration file path) and everything works. I even manged to  
> > install the service on my windows machine via the -i parameter.  
> > The problem is that the service's path to executable points to the  
> > configuration file (which, of course, can't be run). Any idea what I'm  
> > doing wrong or how to alter the configuration?
> 
> > Thanks!

---

<div class="post-metadata">

**Author:** ![Nir\_Rubinstein](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@Nir\_Rubinstein](https://discuss.elastic.co/u/Nir_Rubinstein)\
**Post date:** [May 1, 2011, 7:24am UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/9 "2011-05-01T07:24:34Z")

</div>

Thanks Rui!!

The first link did the trick - got it working on 2 servers in under 10  
minutes - works like a chram!

Thanks again

Nir

On Apr 27, 11:02 pm, Rui Lopes [rui.godinho.lo...@gmail.com](mailto:rui.godinho.lo...@gmail.com) wrote:

> What command line are you using to install the service? Are you usinghttps://github.com/elasticsearch/elasticsearch-servicewrapper?
> 
> BTW, you might want to look athttps://github.com/rgl/elasticsearch-setupas an alternative windows  
> service and installer.
> 
> Best regards,  
> Rui Lopes
> 
> On Wed, Apr 27, 2011 at 09:51, Nir Rubinstein [nir...@gmail.com](mailto:nir...@gmail.com) wrote:
> 
> > Hello
> 
> > I downloaded the ES service host and put it in the location it should  
> > be. After running the .bat file and finding that it didn't work, I  
> > modified a few paths to their absolute location (namely, the  
> > configuration file path) and everything works. I even manged to  
> > install the service on my windows machine via the -i parameter.  
> > The problem is that the service's path to executable points to the  
> > configuration file (which, of course, can't be run). Any idea what I'm  
> > doing wrong or how to alter the configuration?
> 
> > Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:07am UTC](https://discuss.elastic.co/t/deploying-es-as-a-windows-service/4301/10 "2017-07-06T04:07:15Z")

</div>


