# Install 2 differents versions on the same server

**URL:** <https://discuss.elastic.co/t/install-2-differents-versions-on-the-same-server/145138>\
**Category:** Elasticsearch\
**Created:** [August 20, 2018, 10:27am UTC](https://discuss.elastic.co/t/install-2-differents-versions-on-the-same-server/145138 "2018-08-20T10:27:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khl3o](https://avatars.discourse-cdn.com/v4/letter/k/e495f1/32.png) [@khl3o](https://discuss.elastic.co/u/khl3o)\
**Post date:** [August 20, 2018, 10:27am UTC](https://discuss.elastic.co/t/install-2-differents-versions-on-the-same-server/145138/1 "2018-08-20T10:27:19Z")

</div>

Hi,

I have an installed version 2.4.2 on my server and I want to install elastic 6 on this server but keep the 2.4.2 running.

Can I install a new version on a different port (9201) ?

I'm using Debian 8

Thx

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [August 20, 2018, 10:43am UTC](https://discuss.elastic.co/t/install-2-differents-versions-on-the-same-server/145138/2 "2018-08-20T10:43:57Z")

</div>

> [@khl3o](#):
>
> Can I install a new version on a different port (9201) ?

Yes, you can install as many versions as you like since each distribution is unpacked into its own directory structure and thus won't affect any other installations. To run multiple instances you just have to be careful selecting different port numbers, as you suggested, but make sure to change both **http.port** and **transport.tcp.port** (for internal cluster communication) in **elasticsearch.yml**.

I would also suggest using different cluster names ( **cluster.name** in elasticsearch.yml) for the installations, just in case two of them by accident get the same port number (then the node with the different name won't be able to join the named cluster, allowing you to detect the port number issue before it escalates).

---

<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:** [September 17, 2018, 10:44am UTC](https://discuss.elastic.co/t/install-2-differents-versions-on-the-same-server/145138/3 "2018-09-17T10:44:02Z")

</div>

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