I've just started to learn elasticsearch and kibana yesterday,
Today, when i try to restart kibana server, it's return me error: FATAL Error: Port 5601 is already in use. Another instance of Kibana may be running!
Then, when i use this port i need to run bin/kibana-verification-code in terminal
but when i run it in terminal i have this error
Couldn't find verification code.
If Kibana hasn't been configured yet, restart Kibana to generate a new code.
Otherwise, you can safely ignore this message and start using Kibana.
I try to kill the process in linux, sudo kill -9 $(sudo lsof -t -i:5601)
and after i reboot my computer,
but i can't stop and restart kibana.
what should i do?
First of all please disable service start at boot:
systemctl disable kibana
and reboot:
systemctl reboot
your machine. After that Kibana shoudn't start.
Please check once again what service uses 5601.
I've got another question: why do you use default port?
Hey, this work,
would i still need to run this command if i face this kind of thing again tomorrow?
I use default port because that's what it says in documentation,
am i doing wrong?
I need elasticsearch and kibana to send data in kafka so i need to learn first about elasticsearch,
As i learned in documentation yesterday, they say that kibana is used to send data in elasticsearch using dev-tools.
You can correct me if I'm wrong
Thanks
Please don't use default ports, for security reasons. For example I use for Elasticsearch port greater than 10000 and for Kibana port greater than 8000.
Now we should check what other service uses 5601 (you should know what is happening on your server):
then the right thing to do is to change all the default ports of elasticsearch and kibana is that it?
I change them by modifying their yml files isn't?
OK, so please reboot your server.
Command that we used says it should not start at boot time.
If it will than you have something wrong or you had enabled it as a service many times.
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.