# How create some nodes and install as service in the same machine ES 6.3

**URL:** <https://discuss.elastic.co/t/how-create-some-nodes-and-install-as-service-in-the-same-machine-es-6-3/142736>\
**Category:** Elasticsearch\
**Created:** [August 2, 2018, 9:48am UTC](https://discuss.elastic.co/t/how-create-some-nodes-and-install-as-service-in-the-same-machine-es-6-3/142736 "2018-08-02T09:48:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian.calvo](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@adrian.calvo](https://discuss.elastic.co/u/adrian.calvo)\
**Post date:** [August 2, 2018, 9:48am UTC](https://discuss.elastic.co/t/how-create-some-nodes-and-install-as-service-in-the-same-machine-es-6-3/142736/1 "2018-08-02T09:48:46Z")

</div>

Hi to everybody,

ELK is installed as debian pkg: " sudo apt-get update && sudo apt-get install elasticsearch"

Im trying to set up a ELK cluster in the same machine (ubuntu 16.04)

my intention is run 2 elasticsearch instances as service but the ways that I followed doesnt works.

when I run the first node all it is OK!

But when I try runs the second node (./bin/elasticsearch) with another yml config I get this error:  
"./elasticsearch-env: línea 70: /etc/default/elasticsearch: Permiso denegado"

then i tried to set up a second service "elasticsearch2.service" but it doesn't work.

What is the best way to run multiples instances of Elastic Search in the same machine?

Best regards,

Adrián Calvo

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 2, 2018, 10:24pm UTC](https://discuss.elastic.co/t/how-create-some-nodes-and-install-as-service-in-the-same-machine-es-6-3/142736/2 "2018-08-02T22:24:51Z")

</div>

> [@adrian.calvo](#):
>
> What is the best way to run multiples instances of Elastic Search in the same machine?

I think the most commonly recommended option these days is docker.

---

<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:** [August 30, 2018, 10:24pm UTC](https://discuss.elastic.co/t/how-create-some-nodes-and-install-as-service-in-the-same-machine-es-6-3/142736/3 "2018-08-30T22:24:54Z")

</div>

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