# Not able to Install Elastic Search as windows

**URL:** <https://discuss.elastic.co/t/not-able-to-install-elastic-search-as-windows/215309>\
**Category:** Elasticsearch\
**Created:** [January 16, 2020, 12:18pm UTC](https://discuss.elastic.co/t/not-able-to-install-elastic-search-as-windows/215309 "2020-01-16T12:18:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saravana37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravana37/32/85237_2.png) [@Saravana37](https://discuss.elastic.co/u/Saravana37)\
**Post date:** [January 16, 2020, 12:18pm UTC](https://discuss.elastic.co/t/not-able-to-install-elastic-search-as-windows/215309/1 "2020-01-16T12:18:41Z")

</div>

Hello ,

I was trying to install Elastic search as windows service with the below steps. When i try to start the service I am receiving the attached error ? I tried with nssm.exe utility as well , Uninstall and install again as well but no luck . Any idea why iam receving the attached error ? , Please help ...

```
PS E:\ELK\Elasticsearch\bin> .\elasticsearch-service.bat install

```

Installing service : "elasticsearch-service-x64"  
Using JAVA\_HOME (64-bit): "C:\Program Files\Java\jre1.8.0\_201"  
-Xms1g;-Xmx1g;-XX:+UseConcMarkSweepGC;-XX:CMSInitiatingOccupancyFraction=75;-XX:+UseCMSInitiatingOccupancyOnly;-Des.netw  
orkaddress.cache.ttl=60;-Des.networkaddress.cache.negative.ttl=10;-XX:+AlwaysPreTouch;-Xss1m;-Djava.awt.headless=true;-D  
file.encoding=UTF-8;-Djna.nosys=true;-XX:-OmitStackTraceInFastThrow;-Dio.netty.noUnsafe=true;-Dio.netty.noKeySetOptimiza  
tion=true;-Dio.netty.recycler.maxCapacityPerThread=0;-Dlog4j.shutdownHookEnabled=false;-Dlog4j2.disable.jmx=true;-Djava.  
io.tmpdir=C:\Users\E122\_A\_SELVASA\AppData\Local\Temp\3\elasticsearch;-XX:+HeapDumpOnOutOfMemoryError;-XX:HeapDumpPath=da  
ta;-XX:ErrorFile=logs/hs\_err\_pid%p.log;-XX:+PrintGCDetails;-XX:+PrintGCDateStamps;-XX:+PrintTenuringDistribution;-XX:+Pr  
intGCApplicationStoppedTime;-Xloggc:logs/gc.log;-XX:+UseGCLogFileRotation;-XX:NumberOfGCLogFiles=32;-XX:GCLogFileSize=64  
m  
The service 'elasticsearch-service-x64' has been installed.

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/1/910e28e023b9e0ca84bf1d32f98fe477b4227f10.png)

---

<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:** [February 13, 2020, 12:18pm UTC](https://discuss.elastic.co/t/not-able-to-install-elastic-search-as-windows/215309/2 "2020-02-13T12:18:43Z")

</div>

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