ps aux | grep XXX | grep -v grep | awk '{print $2}' | xargs kill -9

其中XXX是进程包含的字符串