Hallo, is anyone here using elasticsearch on centos? I tried several configs to configure external access but nothing is working. My tests: telnet localhost or 127.0.0.1 9200 works local on the machine telnet 192.168.242.4 9200 connection refused local on the machine. So it is clear that access from other systems can not work. Is there perhaps something special to consider when using centos 7? Thanks for hints. Ralf
Hi Ralf, You should check you firewall configuration ... most probably you need to allow port 9200. Also check if elasticsearch service is listening on all interfaces or just localhost (127.0.0.1). -I. On Tue, Feb 19, 2019 at 2:48 PM Ralf Prengel <ralf.prengel at rprengel.de> wrote:> Hallo, > is anyone here using elasticsearch on centos? > I tried several configs to configure external access but nothing is > working. > My tests: > telnet localhost or 127.0.0.1 9200 works local on the machine > telnet 192.168.242.4 9200 connection refused local on the machine. So > it is clear that access from other systems can not work. > Is there perhaps something special to consider when using centos 7? > > Thanks for hints. > > Ralf > > > > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
Am 19.02.2019 um 13:55 schrieb Ionut Hoza:> Hi Ralf, > > You should check you firewall configuration ... most probably you need to > allow port 9200. > Also check if elasticsearch service is listening on all interfaces or just > localhost (127.0.0.1).Hallo, the firewall is disabled. I tried several variations in the config-file. 0.0.0.0 192.168.242.4 Only 127.0.0.1 is working buth only withz local access. Ralf
On 2/19/19 4:48 AM, Ralf Prengel wrote:> telnet localhost or 127.0.0.1 9200 works local on the machine > telnet 192.168.242.4 9200 connection refused local on the machine. So > it is clear that access from other systems can not work.Set your network address as "network.host" in /etc/elasticsearch/elasticsearch.yml