Previous picture
FATAL Error: listen EADDRNOTAVAIL 123.57.251.57:5601
The configuration file is configured as follows:
[root@head-kib ~]# cd /usr/local/kibana-6.5.4-linux-x86_64/config/ [root@head-kib config]# vim kibana.yml server.port: 5601 server.host: "123.57.251.57" elasticsearch.url: "http://192.168.246.234:9200 "ාes node kibana.index: ".kibana"
Because the cloud virtual machine is used, 123.57.251.57 here is the external ip. We should use the internal ip.
However, if you write localhost, although no error will be reported, port 5601 will start normally, but you will be denied access to port 5601.
[root@head-kib kibana-6.5.4-linux-x86_64]# netstat -nlp | grep 5601 #5601 port OK tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 11188/./bin/../node [root@head-kib kibana-6.5.4-linux-x86_64]# curl -i http://123.57.251.57:5601 curl: (7) Failed connect to 123.57.251.57:5601; connection denied
Change ip to 0.0.0.0 and you can access it successfully.
You must kill the process occupying 5601 before restarting. Otherwise, an error will be reported, saying that port 5601 is occupied [root@head-kib kibana-6.5.4-linux-x86_64]# netstat -nlp | grep 5601 tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 11188/./bin/../node [root@head-kib kibana-6.5.4-linux-x86_64]# kill -9 11188 #Kill off [root@head-kib kibana-6.5.4-linux-x86_64]# netstat -nlp | grep 5601 [3]+ Killed nohup ./bin/kibana [root@head-kib kibana-6.5.4-linux-x86_64]# nohup ./bin/kibana & [3] 26192 [root@head-kib kibana-6.5.4-linux-x86_64]# Nohup: ignore input and append output to "nohup.out" [root@head-kib kibana-6.5.4-linux-x86_64]# tail -f nohup.out {"type":"log","@timestamp":"2020-04-01T04:41:25Z","tags": ["status","plugin:spaces@6.5.4","info"],"pid":26192,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
There is no error in the log. You can visit the page again.
Your comments and compliments are my biggest motivation for writing, crab crab.