# How is Elasticsearch windows service implemented?

**URL:** <https://discuss.elastic.co/t/how-is-elasticsearch-windows-service-implemented/65743>\
**Category:** Elasticsearch\
**Created:** [November 11, 2016, 2:03am UTC](https://discuss.elastic.co/t/how-is-elasticsearch-windows-service-implemented/65743 "2016-11-11T02:03:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youxu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youxu/32/117375_2.png) [@Youxu](https://discuss.elastic.co/u/Youxu)\
**Post date:** [November 11, 2016, 2:03am UTC](https://discuss.elastic.co/t/how-is-elasticsearch-windows-service-implemented/65743/1 "2016-11-11T02:03:25Z")

</div>

I am now trying to install Elasticsearch on WIndows 2016 Nano server, but failed to setup and run the ES as windows service, I think there are some changes on Nano server. But have no hint on the root cause.  
Where can I find the source code of the elasticsearch windows service, **elasticsearch-service-x64.exe**?

That could help me understand why the service not work on Nano server.

---

<div class="post-metadata">

**Author:** ![trondhindenes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trondhindenes/32/10534_2.png) [@trondhindenes](https://discuss.elastic.co/u/trondhindenes)\
**Post date:** [November 11, 2016, 9:09pm UTC](https://discuss.elastic.co/t/how-is-elasticsearch-windows-service-implemented/65743/2 "2016-11-11T21:09:21Z")

</div>

"Some changes" is a massive understatement. Are you able to run it directly (not using the service)?

---

<div class="post-metadata">

**Author:** ![Youxu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youxu/32/117375_2.png) [@Youxu](https://discuss.elastic.co/u/Youxu)\
**Post date:** [November 14, 2016, 1:40am UTC](https://discuss.elastic.co/t/how-is-elasticsearch-windows-service-implemented/65743/3 "2016-11-14T01:40:32Z")

</div>

Yes. I can start the ES successfully by running "elasticsearch.bat" on command prompt.  
But cannot start it as windows service.

---

<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:** [December 12, 2016, 1:41am UTC](https://discuss.elastic.co/t/how-is-elasticsearch-windows-service-implemented/65743/4 "2016-12-12T01:41:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
