# Multiple ES run on same machine

**URL:** <https://discuss.elastic.co/t/multiple-es-run-on-same-machine/173781>\
**Category:** Elasticsearch\
**Created:** [March 25, 2019, 3:07pm UTC](https://discuss.elastic.co/t/multiple-es-run-on-same-machine/173781 "2019-03-25T15:07:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KashiPashoria\_Tonny](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@KashiPashoria\_Tonny](https://discuss.elastic.co/u/KashiPashoria_Tonny)\
**Post date:** [March 25, 2019, 3:07pm UTC](https://discuss.elastic.co/t/multiple-es-run-on-same-machine/173781/1 "2019-03-25T15:07:37Z")

</div>

I'm use ES 6.6.0. I need to run multiple **ES** nodes on same machine. I duplicated Elastic installation directory and config & data directories. I created new **ES\_HOME** & **ES\_PATH\_CONFIG** environment variable and changed the names of older variables to newer ones in all **.bat** files but **elasticsearch.exe** still refers to older variables. I also tried  
**-Epath** but I think its deprecated now.  
If anyone can help.

---

<div class="post-metadata">

**Author:** ![Yogesh\_Gaikwad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_gaikwad/32/27025_2.png) [@Yogesh\_Gaikwad](https://discuss.elastic.co/u/Yogesh_Gaikwad)\
**Post date:** [March 25, 2019, 11:51pm UTC](https://discuss.elastic.co/t/multiple-es-run-on-same-machine/173781/2 "2019-03-25T23:51:15Z")

</div>

Hi @KashiPashoria_Tonny,

Is there a reason that you want to do this way?  
You can use Docker to run multiple ES nodes with docker-compose  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html)

Thanks and Regards,  
Yogesh Gaikwad

---

<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:** [April 22, 2019, 11:51pm UTC](https://discuss.elastic.co/t/multiple-es-run-on-same-machine/173781/3 "2019-04-22T23:51:21Z")

</div>

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