Linux中如何停止kibana

情景:

使用如下命令都无法查询到kibana的PID

ps -ef  | grep kibana

ps -ef  | grep 5601

经过实践,使用如下方法可以查询到kibana的PID:

ps -ef | grep node

实例:

启动kibana

./kibana
 log   [01:49:04.709] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [01:49:04.938] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:49:05.018] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:49:05.166] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:49:05.194] [info][status][plugin:[email protected]] Status changed from yellow to green - Kibana index ready
  log   [01:49:05.237] [info][license][xpack] Imported license information from Elasticsearch: mode: basic | status: active | expiry date: 2018-01-17T07:59:59+08:00
  log   [01:49:05.317] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Monitoring Health Check
  log   [01:49:05.322] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [01:49:05.324] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [01:49:05.357] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
  log   [01:49:05.377] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [01:49:05.504] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [01:49:05.511] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  log   [01:49:05.533] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log   [01:49:06.069] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [01:49:06.082] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [01:49:06.985] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [01:49:07.007] [info][listening] Server running at http://172.168.1.121:5601
  log   [01:49:07.011] [info][status][ui settings] Status changed from uninitialized to green - Ready
  •  

查询kibana的PID

ps -ef | grep node
  •  
avahi      866     1  0 Aug31 ?        00:00:01 avahi-daemon: running [node121.local]
root      8118  2295  0 09:51 pts/0    00:00:00 grep --color=auto node

结束进程

kill -9 866

9/1/2017 10:29:41 AM

猜你喜欢

转载自blog.csdn.net/zzg_1990/article/details/82011850