// first way ps aux | grep java | grep -v grep | grep '[[: digit:]] \ +' -o | head -n1 | xargs kill -9 //Second way ps aux | grep java | grep -v grep | awk '{print $ 2}' | xargs kill -9
linux kill process ID by name
For example, the keyword is java
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327036911&siteId=291194637
Recommended
Ranking