Hi,
I installed ES 2.3.3. on my server(centos 7). I want to work on server not localhost. So I changed my elasticsearch.yml file with my ip number:187.48.456.45:
network.host: 187.48.456.45
After restart ES and I tried to connection.
[root@elasticsearch ~]# service elasticsearch restart
Restarting elasticsearch (via systemctl): [ OK ]
However It didn't work true.
[root@elasticsearch ~]# curl http://187.48.456.45:9200
my error: curl: (7) Failed connect to 187.48.456.45:9200; Connection refused
Yeah this is a network issue. I probably know how to solve it:
On a Windows machine: Google for 'paping' and download it, put it in C:/
Open up a command prompt and perform:
C:/paping 176.56.236.46 -p 9200
I'm guessing it will tell you it is closed.
You say 'my firewall close'. This is not how firewalls work. When you 'shutdown' a firewall, it doesn't mean all the ports are open!
CentOS 7 works with firewallcmd. You can either disable firewallcmd and use iptables to open a port.
Or use these commands:
And I'm not quite sure what it is you're trying. Because which machine is IP number: 187.48.456.45?
And you're trying to curl @ 176.56.236.46:9200 (A different IP adres)
I installed centos 6 instead of centos 7. After I installed ES. 2.3.3.
I configured elasticsearch.yml for network.host: 187.48.456.45.
After I installed vesta web panel for apache, mysql and php.
service elasticsearch restart.
error: permission denied on key 'vm.max_map_count'
Starting elasticsearch: log4j:WARN No appenders could be found for logger (common).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
This site can not be reached
187.48.456.45 took too long to respond to the main machine.
Make a search on Google on 187 48 9200
ERR_CONNECTION_TIMED_OUT
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.