jps | awk '{print $1}' | xargs -n 1 kill -9
# 还可以添加过滤条件jps | grep 'Logstash' | awk '{print $1}' | xargs -n 1 kill -9