# How to make elasticsearch turn on automatically

**URL:** <https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048>\
**Category:** Elasticsearch\
**Created:** [July 6, 2020, 6:12pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048 "2020-07-06T18:12:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Splunk](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Splunk](https://discuss.elastic.co/u/Splunk)\
**Post date:** [July 6, 2020, 6:12pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048/1 "2020-07-06T18:12:19Z")

</div>

Hi All,

I have a prob with elasticsearch, I believe it is installed properly on my mac when I shut down and turn on the laptop it won't turn on again I did installation few time same issues, how u are guys handling this? I don't have logstash yet do i?

This is what it is saying

**bin** curl -XGET '[http://localhost:9200/\_status](http://localhost:9200/_status)'

curl: (7) Failed to connect to localhost port 9200: Connection refused

Thanks

---

<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:** [July 6, 2020, 9:13pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048/2 "2020-07-06T21:13:03Z")

</div>

How did you install Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Splunk](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Splunk](https://discuss.elastic.co/u/Splunk)\
**Post date:** [July 6, 2020, 9:14pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048/3 "2020-07-06T21:14:33Z")

</div>

From the elastic website

---

<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:** [July 6, 2020, 9:49pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048/4 "2020-07-06T21:49:33Z")

</div>

Ok, so the tar.gz? If so, then you may want to use homebrew instead, as the tar.gz doesn't contain any scripts to manage startup like that.

---

<div class="post-metadata">

**Author:** ![Splunk](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Splunk](https://discuss.elastic.co/u/Splunk)\
**Post date:** [July 6, 2020, 9:52pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048/5 "2020-07-06T21:52:58Z")

</div>

I tried ./bin/elasticsearch  
it worked, when i turn off and on computer, again i have to type the same command to start.  
is this usual?

---

<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:** [July 6, 2020, 9:56pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048/6 "2020-07-06T21:56:42Z")

</div>

Yes, that is expected.

---

<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 3, 2020, 9:56pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-turn-on-automatically/240048/7 "2020-08-03T21:56:44Z")

</div>

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