I am new to elasticsearch and my company currently have a project that needs to use elasticsearch, so this issue is quite ... urgent
I have installed elasticsearch 5 via this document
We are using centos 6.8, after installing elasticsearch, i have left configurations to the default, allow port 9200 and 9300 by command:
$ sudo iptables -A INPUT -p tcp -m tcp --dport 9200 -j ACCEPT
$ sudo iptables -A INPUT -p tcp -m tcp --dport 9300 -j ACCEPT
$ sudo /etc/init.d/iptables save
then try to connect by curl -XGET 'server_ip:9200/?pretty', it returns connection refused.
I have try to install elasticsearch on centos 7 and it works perfectly, but my company requires install on centos6.8
Any solutions or advises?
Very appreciate !