# Debian 9: ./bin/kibana running, but connection to port 5601 refused

**URL:** <https://discuss.elastic.co/t/debian-9-bin-kibana-running-but-connection-to-port-5601-refused/171458>\
**Category:** Kibana\
**Created:** [March 8, 2019, 8:55am UTC](https://discuss.elastic.co/t/debian-9-bin-kibana-running-but-connection-to-port-5601-refused/171458 "2019-03-08T08:55:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![realtebo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/realtebo/32/47241_2.png) [@realtebo](https://discuss.elastic.co/u/realtebo)\
**Post date:** [March 8, 2019, 8:55am UTC](https://discuss.elastic.co/t/debian-9-bin-kibana-running-but-connection-to-port-5601-refused/171458/1 "2019-03-08T08:55:26Z")

</div>

Hi !

I'm here for first time.

I installed on a debian 9 elastic search and then I installed kibana.

I am testing that is working, using

./bin/kibana

Is it supposed to run using `sudo` ?

In both normal and sudo mode, I obtain

```
[info][listening] Server running at http://localhost:5601
[info][status][plugin:spaces@6.6.1] Status changed from yellow to green - Ready

```

I can see the process run

```
netstat -natp | grep 5601
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 2880/./bin/../node/ 

```

But

```
curl http://localhost:5601 -v
* Rebuilt URL to: http://localhost:5601/
* Trying ::1...
* TCP_NODELAY set
* connect to ::1 port 5601 failed: Connection refused

```

What am I doing wrong ?

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [March 8, 2019, 4:55pm UTC](https://discuss.elastic.co/t/debian-9-bin-kibana-running-but-connection-to-port-5601-refused/171458/2 "2019-03-08T16:55:18Z")

</div>

Did you download and install the tar.gz versions of Elasticsearch and Kibana (not the .deb packages)?

Could you try `curl http://localhost:5601/api/status` and let us know what you get?  
The output should contain `,"state":"green","icon":"success","message":"Ready",`

Did you try opening Kibana in a browser?  
If this is a headless Debian system, you would probably have to set Kibana to listen on other IP addresses instead of only localhost with something in the kibana.yml file like this;

`server.host: 0.0.0.0`

Thanks,  
Lee

---

<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 5, 2019, 4:55pm UTC](https://discuss.elastic.co/t/debian-9-bin-kibana-running-but-connection-to-port-5601-refused/171458/3 "2019-04-05T16:55:18Z")

</div>

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