How to stop kibana in RHEL

How to stop kibana .
We are download tar file and unzipped after i will run kibana.
cd kibana/bin
./kibana

Above start kibana.

But how to stop kibana.
Could you please tell me.

ctrl+c would normally stop it.

you could also find the process ps -af | grep kibana and then kill it kill KIBANAPID

Thanks ,

Some times not stoping. I will shows already runing.
ps -af | grep kibana

above one i am already tried. But not stoping.

ps will just list your processes ... you need to find the PID of the right one and then send it a signal to stop with kill command.

Yes , I tried , But its not working

assuming you are using red hat linux, you might be interested in this guide:
https://www.elastic.co/guide/en/kibana/current/rpm.html

on how to use rpm modules, which will also create a service for you and then you can start/stop kibana just like you do other services with

sudo -i service kibana start
sudo -i service kibana stop

what do you mean its not working ? output from your command ? if kill is not working that's a problem with your linux i guess.

i know how to create rpm.
But my manager saying you need to install tar file only.some time we need to backup easily.
thats why i am using tar file only.

I can use kill command it will showing working fine.But i run it again it showing already runing.

that s the reason.
Could you please help me.

after you kill it will it still show up in ps -af ?

yes , but no process is runing it showing.
after kill .
we need to start again kibana. it will showing its already runing.

i don't understand you well ..... but if ps -af doesn't show any kibana process after you kill it .... then its obviously not running anymore.

maybe something else using its port ? netstat -natp | grep 5601 do you see anything using that port ? kill that PID.

also kill -9 PID will kill the process even if its not responding.

2 Likes

ps -af

above command i runned. it will showing bellow.

UID PID PPID C STIME TTY TIME CMD
venkata+ 2741 1 1 04:56 pts/0 00:01:03 /bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOc
venkata+ 2849 1 0 04:57 pts/0 00:00:31 /bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiating
root 3036 2655 0 04:58 pts/0 00:00:00 sudo su -
root 3067 3036 0 04:58 pts/0 00:00:00 su -
root 3069 3067 0 04:58 pts/0 00:00:00 -bash
root 3147 3069 1 04:59 pts/0 00:01:50 ./../node/bin/node --no-warnings ./../src/cli
root 3424 1 0 05:01 pts/1 00:00:54 //bin/java -Djava.util.logging.config.file=/apache-tomcat-8.5.13/conf/logging.properties -Dj
root 3680 3310 0 05:02 pts/1 00:00:00 sudo ./logstash -f data.json
root 3681 3680 3 05:02 pts/1 00:03:35 /bin/java -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatin
root 4691 4481 0 05:11 pts/2 00:00:00 sudo ./logstash -f /elk/logstash/logstash-5.2.0/config/github.conf
root 4697 4691 3 05:11 pts/2 00:03:18 /bin/java -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatin
root 5032 4969 0 05:13 pts/3 00:00:00 sudo su -
root 5046 5032 0 05:13 pts/3 00:00:00 su -
root 5052 5046 0 05:13 pts/3 00:00:00 -bash
root 14176 5052 0 06:42 pts/3 00:00:00 ps -af

above output not showing kibana.
But kibana runing in my linux box.

this one is kibana

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.