kibana启动后通过jps或jobs找不到对应的PID
但是启动的时候却报:
{"type":"log","@timestamp":"2018-11-21T06:32:59Z","tags":["fatal"],"pid":22160,"message":"Port 5601 is already in use. Another instance of Kibana may be running!"}
可以通过ps -ef|grep node命令或netstat -anltp|grep 5601查找对应端口
[app@VM-103-194-centos ~]$ ps -ef|grep node
app 22933 22639 0 14:35 pts/1 00:00:00 grep node
bigdata 24338 1 0 Nov16 ? 00:32:17 ./bin/../node/bin/node --no-warnings ./bin/../src/cli
或
[app@VM-103-194-centos ~]$ netstat -anltp|grep 5601
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 x.x.x.194:5601 0.0.0.0:* LISTEN -
[app@VM-103-194-centos ~]$ sudo netstat -anltp|grep 5601
tcp 0 0 x.x.x194:5601 0.0.0.0:* LISTEN 24338/./bin/../node
最后把对应端口的pid kill掉就可以了
kill -9 24338